summaryrefslogtreecommitdiff
blob: 1934d9cde11afdc6676e52f9aa7528d9723a0c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- phc-intel-pack-rev16/inc/3.16/linux-phc-0.3.2.patch
+++ phc-intel-pack-rev16/inc/3.16/linux-phc-0.3.2.patch
@@ -195,7 +195,7 @@
  static void __init acpi_cpufreq_boost_init(void)
  {
  	if (boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA)) {
-@@ -928,6 +1019,481 @@
+@@ -928,6 +1019,486 @@
  	}
  }
  
@@ -271,6 +271,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;
@@ -300,6 +301,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;
@@ -326,6 +328,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;
@@ -354,6 +357,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;
@@ -385,6 +389,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;