diff options
Diffstat (limited to 'arch/sh/kernel/setup.c')
-rw-r--r-- | arch/sh/kernel/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 4e278467f76c..d6b018c7ebdc 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <asm/smp.h> | 41 | #include <asm/smp.h> |
42 | #include <asm/mmu_context.h> | 42 | #include <asm/mmu_context.h> |
43 | #include <asm/mmzone.h> | 43 | #include <asm/mmzone.h> |
44 | #include <asm/sparsemem.h> | ||
44 | 45 | ||
45 | /* | 46 | /* |
46 | * Initialize loops_per_jiffy as 10000000 (1000MIPS). | 47 | * Initialize loops_per_jiffy as 10000000 (1000MIPS). |
@@ -52,6 +53,7 @@ struct sh_cpuinfo cpu_data[NR_CPUS] __read_mostly = { | |||
52 | .type = CPU_SH_NONE, | 53 | .type = CPU_SH_NONE, |
53 | .family = CPU_FAMILY_UNKNOWN, | 54 | .family = CPU_FAMILY_UNKNOWN, |
54 | .loops_per_jiffy = 10000000, | 55 | .loops_per_jiffy = 10000000, |
56 | .phys_bits = MAX_PHYSMEM_BITS, | ||
55 | }, | 57 | }, |
56 | }; | 58 | }; |
57 | EXPORT_SYMBOL(cpu_data); | 59 | EXPORT_SYMBOL(cpu_data); |
@@ -432,6 +434,8 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
432 | if (c->flags & CPU_HAS_L2_CACHE) | 434 | if (c->flags & CPU_HAS_L2_CACHE) |
433 | show_cacheinfo(m, "scache", c->scache); | 435 | show_cacheinfo(m, "scache", c->scache); |
434 | 436 | ||
437 | seq_printf(m, "address sizes\t: %u bits physical\n", c->phys_bits); | ||
438 | |||
435 | seq_printf(m, "bogomips\t: %lu.%02lu\n", | 439 | seq_printf(m, "bogomips\t: %lu.%02lu\n", |
436 | c->loops_per_jiffy/(500000/HZ), | 440 | c->loops_per_jiffy/(500000/HZ), |
437 | (c->loops_per_jiffy/(5000/HZ)) % 100); | 441 | (c->loops_per_jiffy/(5000/HZ)) % 100); |