Skip to content

RFC powernv: Show the correct clock value in /proc/cpuinfo

Gautham R. Shenoy linuxppc-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc: powernv: Framework to show the correct clock in /proc/cpuinfoarch/powerpc/include/asm/machdep.h arch/powerpc/kernel/setup-common.c+14 -40 replies
2/2powerpc: powernv: Implement ppc_md.get_proc_freq()arch/powerpc/platforms/powernv/setup.c+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] powernv: Show the correct clock value in /proc/cpuinfo

From: "Gautham R. Shenoy" <[email protected]>

Hi,

Currently, the code in setup-common.c for powerpc assumes that all clock rates are same in a smp system. This value is cached in the variable named ppc_proc_freq and is the value that is reported in /proc/cpuinfo.

However on the PowerNV platform, the clock rate is same only across the threads of the same core. Hence the value that is reported in /proc/cpuinfo is incorrect on PowerNV platforms.

This patch-series fixes this problem by having /proc/cpuinfo report the value returned by cpufreq_quick_get(cpu) whenever the cpufreq backend driver is available and fallback to the old way of reporting the clock rate in its absence.

These patches depend on the patches to enable dynamic cpufrequency scaling on PowerNV that can be found here:
http://linuxppc.10917.n7.nabble.com/PATCH-v2-0-6-powernv-cpufreq-Dynamic-cpu-frequency-scaling-td80641.html

Gautham R. Shenoy (2):
powerpc: powernv: Framework to show the correct clock in /proc/cpuinfo
powerpc: powernv: Implement ppc_md.get_proc_freq()

 arch/powerpc/include/asm/machdep.h     |  2 ++
 arch/powerpc/kernel/setup-common.c     | 16 ++++++++++++----
 arch/powerpc/platforms/powernv/setup.c | 21 +++++++++++++++++++++
 3 files changed, 35 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.3.1