[parisc-linux-cvs] print software-ID in /proc/cpuinfo

Helge Deller deller@gmx.de
Sat, 6 Oct 2001 10:05:42 +0200


RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/processor.c,v
retrieving revision 1.2
diff -u -r1.2 processor.c
--- processor.c 2001/10/05 20:32:03     1.2
+++ processor.c 2001/10/06 07:59:04
@@ -311,6 +311,9 @@
                p += sprintf(p, "bogomips\t: %lu.%02lu\n",
                             loops_per_jiffy / (500000 / HZ),
                             (loops_per_jiffy / (5000 / HZ)) % 100);
+
+               p += sprintf(p, "software id\t: %ld\n",
+                               boot_cpu_data.pdc.model.sw_id);
        }
        return p - buffer;
 }