diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-03-08 20:18:19 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:14:25 -0500 |
commit | 90a6646bf6a1ca821f32d5510e935855612904df (patch) | |
tree | 035420e4ab615cb837b1246fc26c55e0b8d233b4 /arch/sparc64/kernel/setup.c | |
parent | 8935dced547afbf37d0fcfcac9a3556494e53104 (diff) |
[SPARC64]: Fix system type in /proc/cpuinfo and remove bogus OBP check.
Report 'sun4v' when appropriate in /proc/cpuinfo
Remove all the verifications of the OBP version string. Just
make sure it's there, and report it raw in the bootup logs and
via /proc/cpuinfo.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/setup.c')
-rw-r--r-- | arch/sparc64/kernel/setup.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 2a2a8a6cd17d..7ae4027a9192 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
@@ -442,9 +442,8 @@ static int show_cpuinfo(struct seq_file *m, void *__unused) | |||
442 | seq_printf(m, | 442 | seq_printf(m, |
443 | "cpu\t\t: %s\n" | 443 | "cpu\t\t: %s\n" |
444 | "fpu\t\t: %s\n" | 444 | "fpu\t\t: %s\n" |
445 | "promlib\t\t: Version 3 Revision %d\n" | 445 | "prom\t\t: %s\n" |
446 | "prom\t\t: %d.%d.%d\n" | 446 | "type\t\t: %s\n" |
447 | "type\t\t: sun4u\n" | ||
448 | "ncpus probed\t: %d\n" | 447 | "ncpus probed\t: %d\n" |
449 | "ncpus active\t: %d\n" | 448 | "ncpus active\t: %d\n" |
450 | "D$ parity tl1\t: %u\n" | 449 | "D$ parity tl1\t: %u\n" |
@@ -456,10 +455,10 @@ static int show_cpuinfo(struct seq_file *m, void *__unused) | |||
456 | , | 455 | , |
457 | sparc_cpu_type, | 456 | sparc_cpu_type, |
458 | sparc_fpu_type, | 457 | sparc_fpu_type, |
459 | prom_rev, | 458 | prom_version, |
460 | prom_prev >> 16, | 459 | ((tlb_type == hypervisor) ? |
461 | (prom_prev >> 8) & 0xff, | 460 | "sun4v" : |
462 | prom_prev & 0xff, | 461 | "sun4u"), |
463 | ncpus_probed, | 462 | ncpus_probed, |
464 | num_online_cpus(), | 463 | num_online_cpus(), |
465 | dcache_parity_tl1_occurred, | 464 | dcache_parity_tl1_occurred, |