diff options
author | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-05-02 23:06:35 +0000 |
---|---|---|
committer | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-05-02 23:06:35 +0000 |
commit | 9088a9587ff7fd784000f1f119e1da43be4378e4 (patch) | |
tree | 2f91c75410ca55c18b0c9dbe8725ab4d97442ded /arch/mips64/kernel/proc.c | |
parent | e0bddc406b365ce328d869ab98afe9fe738d755f (diff) |
Change the output format of /proc/cpuinfo slightly to report the number
of cpus.
Diffstat (limited to 'arch/mips64/kernel/proc.c')
-rw-r--r-- | arch/mips64/kernel/proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips64/kernel/proc.c b/arch/mips64/kernel/proc.c index 063ac5d88..78a9cbdcc 100644 --- a/arch/mips64/kernel/proc.c +++ b/arch/mips64/kernel/proc.c @@ -11,6 +11,7 @@ #include <linux/delay.h> #include <linux/kernel.h> #include <linux/sched.h> +#include <linux/smp.h> #include <asm/bootinfo.h> #include <asm/mipsregs.h> #include <asm/processor.h> @@ -45,6 +46,7 @@ int get_cpuinfo(char *buffer) len += sprintf(buffer + len, "BogoMIPS\t\t: %lu.%02lu\n", (loops_per_sec + 2500) / 500000, ((loops_per_sec + 2500) / 5000) % 100); + len += sprintf(buffer + len, "Number of cpus\t\t: %d\n", smp_num_cpus); #if defined (__MIPSEB__) len += sprintf(buffer + len, "byteorder\t\t: big endian\n"); #endif |