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:Zeng Heng <zengheng4@huawei.com>
Loading
Please sign in to comment