--- phc-intel-pack-rev21/inc/3.11/linux-phc-0.3.2.patch
+++ phc-intel-pack-rev21/inc/3.11/linux-phc-0.3.2.patch
@@ -122,7 +122,7 @@
  	if (boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA)) {
  		msrs = msrs_alloc();
  
-@@ -986,10 +987,485 @@
+@@ -986,10 +987,489 @@
  		msrs_free(msrs);
  		msrs = NULL;
  	}
@@ -200,6 +200,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;
@@ -229,6 +230,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;
@@ -255,6 +257,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;
@@ -283,6 +286,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;
@@ -314,6 +318,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;
