Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/power x86_energy_perf_policy: EPB access is only via sysfs

Comprehend that EPB writes are now only via sysfs
by moving it out of the _msr specific path.

No functional change.

Signed-off-by: Len Brown <len.brown@intel.com>

Len Brown f8241f54 8ef8fa82

+17 -10
+17 -10
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
··· 1182 1182 return 0; 1183 1183 } 1184 1184 1185 + int update_cpu_epb_sysfs(int cpu) 1186 + { 1187 + int epb; 1188 + 1189 + epb = get_epb_sysfs(cpu); 1190 + set_epb_sysfs(cpu, new_epb); 1191 + 1192 + if (verbose) 1193 + printf("cpu%d: ENERGY_PERF_BIAS old: %d new: %d\n", 1194 + cpu, epb, (unsigned int) new_epb); 1195 + 1196 + return 0; 1197 + } 1198 + 1185 1199 int update_cpu_msrs(int cpu) 1186 1200 { 1187 1201 unsigned long long msr; 1188 - int epb; 1189 - 1190 - if (update_epb) { 1191 - epb = get_epb_sysfs(cpu); 1192 - set_epb_sysfs(cpu, new_epb); 1193 - 1194 - if (verbose) 1195 - printf("cpu%d: ENERGY_PERF_BIAS old: %d new: %d\n", 1196 - cpu, epb, (unsigned int) new_epb); 1197 - } 1198 1202 1199 1203 if (update_turbo) { 1200 1204 int turbo_is_present_and_disabled; ··· 1588 1584 1589 1585 /* update CPU set */ 1590 1586 if (cpu_selected_set) { 1587 + if (update_epb) 1588 + for_all_cpus_in_set(cpu_setsize, cpu_selected_set, update_cpu_epb_sysfs); 1591 1589 for_all_cpus_in_set(cpu_setsize, cpu_selected_set, update_sysfs); 1592 1590 for_all_cpus_in_set(cpu_setsize, cpu_selected_set, update_cpu_msrs); 1591 + 1593 1592 } else if (pkg_selected_set) 1594 1593 for_packages(pkg_selected_set, update_hwp_request_pkg_msr); 1595 1594