aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorTero Kristo <[email protected]>2023-06-21 09:58:39 +0300
committerRafael J. Wysocki <[email protected]>2023-06-21 19:42:58 +0200
commit03f44ffb3d5be2fceda375d92c70ab6de4df7081 (patch)
treebf30dcd4266a938935105c0649ecb0b43e49c87d /tools/perf/util/scripting-engines/trace-event-python.c
parentc88ad30e3f861c7be4e3b4995554e2b0754059b7 (diff)
cpufreq: intel_pstate: Fix energy_performance_preference for passive
If the intel_pstate driver is set to passive mode, then writing the same value to the energy_performance_preference sysfs twice will fail. This is caused by the wrong return value used (index of the matched energy_perf_string), instead of the length of the passed in parameter. Fix by forcing the internal return value to zero when the same preference is passed in by user. This same issue is not present when active mode is used for the driver. Fixes: f6ebbcf08f37 ("cpufreq: intel_pstate: Implement passive mode with HWP enabled") Reported-by: Niklas Neronin <[email protected]> Signed-off-by: Tero Kristo <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions