Commit 904d9dcd authored by Zeng Heng's avatar Zeng Heng
Browse files

cpufreq: CPPC: keep target core awake when reading its cpufreq rate

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



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

As ARM AMU's document says, all counters are subject to any changes
in clock frequency, including clock stopping caused by the WFI and WFE
instructions.

Therefore, using smp_call_on_cpu() to trigger target CPU to
read self's AMU counters, which ensures the counters are working
properly during calculation.

Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent 09f90a26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment