aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r--arch/powerpc/kernel/setup_32.c45
1 files changed, 8 insertions, 37 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 2d7fdeb581d1..c6a67c65852a 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -39,15 +39,7 @@
39#include <asm/sections.h> 39#include <asm/sections.h>
40#include <asm/nvram.h> 40#include <asm/nvram.h>
41#include <asm/xmon.h> 41#include <asm/xmon.h>
42#include <asm/ocp.h> 42#include <asm/time.h>
43
44#define USES_PPC_SYS (defined(CONFIG_85xx) || defined(CONFIG_83xx) || \
45 defined(CONFIG_MPC10X_BRIDGE) || defined(CONFIG_8260) || \
46 defined(CONFIG_PPC_MPC52xx))
47
48#if USES_PPC_SYS
49#include <asm/ppc_sys.h>
50#endif
51 43
52#if defined CONFIG_KGDB 44#if defined CONFIG_KGDB
53#include <asm/kgdb.h> 45#include <asm/kgdb.h>
@@ -234,18 +226,19 @@ int show_cpuinfo(struct seq_file *m, void *v)
234 } 226 }
235 } 227 }
236 228
229 /*
230 * Assume here that all clock rates are the same in a
231 * smp system. -- Cort
232 */
233 seq_printf(m, "clock\t\t: %lu.%06luMHz\n", ppc_proc_freq / 1000000,
234 ppc_proc_freq % 1000000);
235
237 seq_printf(m, "revision\t: %hd.%hd (pvr %04x %04x)\n", 236 seq_printf(m, "revision\t: %hd.%hd (pvr %04x %04x)\n",
238 maj, min, PVR_VER(pvr), PVR_REV(pvr)); 237 maj, min, PVR_VER(pvr), PVR_REV(pvr));
239 238
240 seq_printf(m, "bogomips\t: %lu.%02lu\n", 239 seq_printf(m, "bogomips\t: %lu.%02lu\n",
241 lpj / (500000/HZ), (lpj / (5000/HZ)) % 100); 240 lpj / (500000/HZ), (lpj / (5000/HZ)) % 100);
242 241
243#if USES_PPC_SYS
244 if (cur_ppc_sys_spec->ppc_sys_name)
245 seq_printf(m, "chipset\t\t: %s\n",
246 cur_ppc_sys_spec->ppc_sys_name);
247#endif
248
249#ifdef CONFIG_SMP 242#ifdef CONFIG_SMP
250 seq_printf(m, "\n"); 243 seq_printf(m, "\n");
251#endif 244#endif
@@ -305,28 +298,6 @@ unsigned long __init early_init(unsigned long dt_ptr)
305} 298}
306 299
307#ifdef CONFIG_PPC_OF 300#ifdef CONFIG_PPC_OF
308/*
309 * Assume here that all clock rates are the same in a
310 * smp system. -- Cort
311 */
312int
313of_show_percpuinfo(struct seq_file *m, int i)
314{
315 struct device_node *cpu_node;
316 u32 *fp;
317 int s;
318
319 cpu_node = find_type_devices("cpu");
320 if (!cpu_node)
321 return 0;
322 for (s = 0; s < i && cpu_node->next; s++)
323 cpu_node = cpu_node->next;
324 fp = (u32 *)get_property(cpu_node, "clock-frequency", NULL);
325 if (fp)
326 seq_printf(m, "clock\t\t: %dMHz\n", *fp / 1000000);
327 return 0;
328}
329
330void __init 301void __init
331intuit_machine_type(void) 302intuit_machine_type(void)
332{ 303{