patch-2.1.127 linux/arch/i386/kernel/setup.c
Next file: linux/arch/i386/mm/fault.c
Previous file: linux/arch/i386/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Oct 31 14:23:34 1998
- Orig file:
v2.1.126/linux/arch/i386/kernel/setup.c
- Orig date:
Fri Oct 23 22:01:19 1998
diff -u --recursive --new-file v2.1.126/linux/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c
@@ -81,6 +81,7 @@
extern int root_mountflags;
extern int _etext, _edata, _end;
+extern unsigned long cpu_hz;
/*
* This is set up by the setup-routine at boot-time
@@ -617,6 +618,11 @@
p += sprintf(p, "stepping\t: %d\n", c->x86_mask);
} else
p += sprintf(p, "stepping\t: unknown\n");
+
+ if (c->x86_capability & X86_FEATURE_TSC) {
+ p += sprintf(p, "cpu MHz\t\t: %lu.%06lu\n",
+ cpu_hz / 1000000, (cpu_hz % 1000000));
+ }
/* Cache size */
if (c->x86_cache_size >= 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov