cpufreq: intel_pstate: Change intel_pstate_get_hwp_max() argument
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Jan 2021 18:43:30 +0000 (19:43 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Jan 2021 18:34:04 +0000 (19:34 +0100)
commita45ee4d4e13b0e35a8ec7ea0bf9267243d57b302
treec4df471ca72b907070c7b75176f4f3c90810757c
parent9dd04ec6bc6fa7b310e5595f2ad9bef13eacd3a0
cpufreq: intel_pstate: Change intel_pstate_get_hwp_max() argument

All of the callers of intel_pstate_get_hwp_max() access the struct
cpudata object that corresponds to the given CPU already and the
function itself needs to access that object (in order to update
hwp_cap_cached), so modify the code to pass a struct cpudata pointer
to it instead of the CPU number.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Chen Yu <yu.c.chen@intel.com>
drivers/cpufreq/intel_pstate.c