aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r--arch/powerpc/kernel/setup-common.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 79b7612ac6fa..3cf25c89469d 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -212,6 +212,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
212{ 212{
213 unsigned long cpu_id = (unsigned long)v - 1; 213 unsigned long cpu_id = (unsigned long)v - 1;
214 unsigned int pvr; 214 unsigned int pvr;
215 unsigned long proc_freq;
215 unsigned short maj; 216 unsigned short maj;
216 unsigned short min; 217 unsigned short min;
217 218
@@ -263,12 +264,19 @@ static int show_cpuinfo(struct seq_file *m, void *v)
263#endif /* CONFIG_TAU */ 264#endif /* CONFIG_TAU */
264 265
265 /* 266 /*
266 * Assume here that all clock rates are the same in a 267 * Platforms that have variable clock rates, should implement
267 * smp system. -- Cort 268 * the method ppc_md.get_proc_freq() that reports the clock
269 * rate of a given cpu. The rest can use ppc_proc_freq to
270 * report the clock rate that is same across all cpus.
268 */ 271 */
269 if (ppc_proc_freq) 272 if (ppc_md.get_proc_freq)
273 proc_freq = ppc_md.get_proc_freq(cpu_id);
274 else
275 proc_freq = ppc_proc_freq;
276
277 if (proc_freq)
270 seq_printf(m, "clock\t\t: %lu.%06luMHz\n", 278 seq_printf(m, "clock\t\t: %lu.%06luMHz\n",
271 ppc_proc_freq / 1000000, ppc_proc_freq % 1000000); 279 proc_freq / 1000000, proc_freq % 1000000);
272 280
273 if (ppc_md.show_percpuinfo != NULL) 281 if (ppc_md.show_percpuinfo != NULL)
274 ppc_md.show_percpuinfo(m, cpu_id); 282 ppc_md.show_percpuinfo(m, cpu_id);