summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-02-07 15:48:40 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-02-21 20:09:21 +0300
commited7cad0504e38a2a4e1aa6168b6eadee6de531b5 (patch)
tree90559ef1c56e9e8ba609e25cdc2cb2e73e222504 /tools/perf/scripts/python/libxed.py
parent3698dd6b139dc37b35a9ad83d9330c1f99666c02 (diff)
downloadlinux-ed7cad0504e38a2a4e1aa6168b6eadee6de531b5.tar.xz
cpufreq: intel_pstate: Relocate platform preference check
Move the invocation of intel_pstate_platform_pwr_mgmt_exists() before checking whether or not HWP is enabled because it does not depend on any code running before it except for the vendor check and if CPU performance scaling is going to be carried out by the platform, all of the code that runs before that function (again, except for the vendor check) is redundant. This is not expected to alter any functionality except for the ordering of messages printed by intel_pstate_init() when it is going to return an error before attempting to register the driver. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Link: https://patch.msgid.link/2776745.mvXUDI8C0e@rjwysocki.net
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions