Commit 733bb2cd authored by Zeng Heng's avatar Zeng Heng
Browse files

cppc_cpufreq: get cpunum from fb_ctrs instead of smp_processor_id()

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8ELKA



----------------------------------------

In cppc_cpufreq_get_rate(), when the platform doesn't have AMU and call
cppc_get_perf_ctrs_sample() directly, it needs target cpunum argument
but not get local cpu by smp_processor_id().

Here introduce the struct fb_ctr_pair which includes the target cpunum,
and acts as the parameter of cppc_get_perf_ctrs_sample().

Fixes: 904d9dcd ("cpufreq: CPPC: keep target core awake when reading its cpufreq rate")
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent 2380c87d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment