--- phc-intel-pack-rev24/inc/4.10/linux-phc-0.3.2.patch
+++ phc-intel-pack-rev24/inc/4.10/linux-phc-0.3.2.patch
@@ -98,7 +98,7 @@
  static enum cpuhp_state acpi_cpufreq_online;
  
  static void __init acpi_cpufreq_boost_init(void)
-@@ -934,6 +930,494 @@
+@@ -934,6 +930,499 @@
  		cpuhp_remove_state_nocalls(acpi_cpufreq_online);
  }
  
@@ -172,6 +172,7 @@
 +		vid = extract_vid_from_control(perf->states[freq_table[i].driver_data].control);
 +		count += sprintf(&buf[count], "%u ", vid);
 +	}
++	if (count) count--;
 +	count += sprintf(&buf[count], "\n");
 +
 +	return count;
@@ -200,6 +201,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;
@@ -225,6 +227,7 @@
 +		fid = extract_fid_from_control(perf->states[freq_table[i].driver_data].control);
 +		count += sprintf(&buf[count], "%u ", fid);
 +	}
++	if (count) count--;
 +	count += sprintf(&buf[count], "\n");
 +
 +	return count;
@@ -255,6 +258,7 @@
 +		vid = extract_vid_from_control(perf->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;
@@ -288,6 +292,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;
