mbox series

[0/2] drivers/cpufreq: gain accurate CPU frequency from cpufreq/scaling_cur_freq

Message ID 20230515100005.3540793-3-zengheng4@huawei.com
Headers show
Series drivers/cpufreq: gain accurate CPU frequency from cpufreq/scaling_cur_freq | expand

Message

Zeng Heng May 15, 2023, 10 a.m. UTC
When users want to get frequency by scaling_cur_freq under cpufreq sysfs,
they often get the invalid result like:

$ cat /sys/devices/system/cpu/cpu6/cpufreq/scaling_cur_freq
4294967295

So this series provides fixes to the concerned issue.

Zeng Heng (2):
  cpufreq: CPPC: keep target core awake when reading its cpufreq rate
  acpi: CPPC: read delivered_reg and reference_reg in critical section

 drivers/acpi/cppc_acpi.c       |  4 ++++
 drivers/cpufreq/cppc_cpufreq.c | 30 ++++++++++++++++--------------
 2 files changed, 20 insertions(+), 14 deletions(-)

--
2.25.1