diff options
| author | Ayush Jain <[email protected]> | 2023-11-03 09:48:15 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2023-11-29 21:04:15 +0000 |
| commit | 142c169b31beb364ef39385b4e88735bd51d37fe (patch) | |
| tree | fb2db8a194eec7faea4f85319584b1de6f02e517 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | cpufreq/amd-pstate: Fix scaling_min_freq and scaling_max_freq update (diff) | |
| download | kernel-142c169b31beb364ef39385b4e88735bd51d37fe.tar.gz kernel-142c169b31beb364ef39385b4e88735bd51d37fe.zip | |
cpufreq/amd-pstate: Only print supported EPP values for performance governor
show_energy_performance_available_preferences() to show only supported
values which is performance in performance governor policy.
-------Before--------
$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_driver
amd-pstate-epp
$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
performance
$ cat /sys/devices/system/cpu/cpu1/cpufreq/energy_performance_preference
performance
$ cat /sys/devices/system/cpu/cpu1/cpufreq/energy_performance_available_preferences
default performance balance_performance balance_power power
-------After--------
$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_driver
amd-pstate-epp
$ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
performance
$ cat /sys/devices/system/cpu/cpu1/cpufreq/energy_performance_preference
performance
$ cat /sys/devices/system/cpu/cpu1/cpufreq/energy_performance_available_preferences
performance
Fixes: ffa5096a7c33 ("cpufreq: amd-pstate: implement Pstate EPP support for the AMD processors")
Suggested-by: Wyes Karny <[email protected]>
Signed-off-by: Ayush Jain <[email protected]>
Reviewed-by: Wyes Karny <[email protected]>
Acked-by: Huang Rui <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
