From: Gautham R. Shenoy Date: Tue, 11 Mar 2014 11:31:19 +0000 (+0530) Subject: powerpc: powernv: Implement ppc_md.get_proc_freq() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~60^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5153d05a7dd42b9bb9855985dd9a99a09fbd80;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed