diff options
author | Shriya <shriyak@linux.vnet.ibm.com> | 2017-10-13 07:36:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-20 12:07:27 +0300 |
commit | 29a404be7b30237e0894057422407722d3f8bf45 (patch) | |
tree | c6de252f824e05bc030ffbd96c0fa1e81ad677f7 /lib/int_sqrt.c | |
parent | f44d28e0348dbb081784ab02be57954d75efa13e (diff) | |
download | linux-29a404be7b30237e0894057422407722d3f8bf45.tar.xz |
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@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/int_sqrt.c')
0 files changed, 0 insertions, 0 deletions