]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 17 Jan 2018 17:55:36 +0000 (12:55 -0500)
commit703f625378288d753bdd8a22822a5254ff1a0b3f
treeb0a93f0833305af6fbc16e218de13e2d34993b75
parentfc5d20b5cc21cf82d196bbf173a29cdde4fb9236
powerpc/powernv/cpufreq: Fix the frequency read by /proc/cpuinfo

[ Upstream commit cd77b5ce208c153260ed7882d8910f2395bfaabd ]

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: Sasha Levin <alexander.levin@microsoft.com>
arch/powerpc/platforms/powernv/setup.c