commit | a45ee4d4e13b0e35a8ec7ea0bf9267243d57b302 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Jan 07 19:43:30 2021 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Tue Jan 12 19:34:04 2021 +0100 |
tree | c4df471ca72b907070c7b75176f4f3c90810757c | |
parent | 9dd04ec6bc6fa7b310e5595f2ad9bef13eacd3a0 [diff] |
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>