You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-power/phc-intel/files/phc-intel-0.3.2-rev14-trail...

52 lines
1.5 KiB

--- phc-intel-pack-rev14/inc/3.13/linux-phc-0.3.2.patch
+++ phc-intel-pack-rev14/inc/3.13/linux-phc-0.3.2.patch
@@ -197,7 +197,7 @@
static void __init acpi_cpufreq_boost_init(void)
{
if (boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA)) {
-@@ -956,6 +1050,480 @@
+@@ -956,6 +1050,485 @@
}
}
@@ -273,6 +273,7 @@
+ vid = extract_vid_from_control(acpi_data->states[freq_table[i].driver_data].control);
+ count += sprintf(&buf[count], "%u ", vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -302,6 +303,7 @@
+ vid = extract_vid_from_control(data->original_controls[freq_table[i].driver_data]);
+ count += sprintf(&buf[count], "%u ", vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -328,6 +330,7 @@
+ fid = extract_fid_from_control(acpi_data->states[freq_table[i].driver_data].control);
+ count += sprintf(&buf[count], "%u ", fid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -356,6 +359,7 @@
+ vid = extract_vid_from_control(acpi_data->states[freq_table[i].driver_data].control);
+ count += sprintf(&buf[count], "%u:%u ", fid, vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -387,6 +391,7 @@
+ vid = extract_vid_from_control(data->original_controls[freq_table[i].driver_data]);
+ count += sprintf(&buf[count], "%u:%u ", fid, vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;