]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/mips/kernel/proc.c
MIPS: Add generic support for multiple machines within a single kernel
[mv-sheeva.git] / arch / mips / kernel / proc.c
index 26109c4d51704ae5ca9a1d83cacc4fe30b3c399d..4195abb55e5901b1f9eb2912d571817e23b21a5f 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/cpu-features.h>
 #include <asm/mipsregs.h>
 #include <asm/processor.h>
+#include <asm/mips_machine.h>
 
 unsigned int vced_count, vcei_count;
 
@@ -31,8 +32,12 @@ static int show_cpuinfo(struct seq_file *m, void *v)
        /*
         * For the first processor also print the system type
         */
-       if (n == 0)
+       if (n == 0) {
                seq_printf(m, "system type\t\t: %s\n", get_system_type());
+               if (mips_get_machine_name())
+                       seq_printf(m, "machine\t\t\t: %s\n",
+                                  mips_get_machine_name());
+       }
 
        seq_printf(m, "processor\t\t: %ld\n", n);
        sprintf(fmt, "cpu model\t\t: %%s V%%d.%%d%s\n",