]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: powernv: Implement ppc_md.get_proc_freq()
authorGautham R. Shenoy <ego@linux.vnet.ibm.com>
Tue, 11 Mar 2014 11:31:19 +0000 (17:01 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 07:36:43 +0000 (17:36 +1000)
commit9211aa62f86afd726eeb6605d2bd821bbb49b5ba
treec1c6f82115ee4407eac148c70d55d52fdf799105
parentdd162618cc2fcef56484951f0cc4369e35e6b996
powerpc: powernv: Implement ppc_md.get_proc_freq()

Implement a method named pnv_get_proc_freq(unsigned int cpu) which
returns the current clock rate on the 'cpu' in Hz to be reported in
/proc/cpuinfo. This method uses the value reported by cpufreq when
such a value is sane. Otherwise it falls back to old way of reporting
the clockrate, i.e. ppc_proc_freq.

Set the ppc_md.get_proc_freq() hook to pnv_get_proc_freq() on the
PowerNV platform.

Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/setup.c