]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/powernv/cpufreq: Fix the frequency read by /proc/cpuinfo
authorShriya <shriyak@linux.vnet.ibm.com>
Fri, 13 Oct 2017 04:36:41 +0000 (10:06 +0530)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Feb 2018 18:42:16 +0000 (18:42 +0000)
commitd1b56a88c319b975639b12cce0a30a720dae5579
tree41352fdaeac6e7e3d59b0b6db83547eaaa5cf54e
parent33472ce4135f0a9d2c8c2471833597c9be096264
powerpc/powernv/cpufreq: Fix the frequency read by /proc/cpuinfo

commit cd77b5ce208c153260ed7882d8910f2395bfaabd upstream.

The call to /proc/cpuinfo in turn calls cpufreq_quick_get() which
returns the last frequency requested by the kernel, but may not
reflect the actual frequency the processor is running at. This patch
makes a call to cpufreq_get() instead which returns the current
frequency reported by the hardware.

Fixes: fb5153d05a7d ("powerpc: powernv: Implement ppc_md.get_proc_freq()")
Signed-off-by: Shriya <shriyak@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/powerpc/platforms/powernv/setup.c