Skip to contentSkip to conversation

for /proc/cpuinfo MHz

PATCH New Kohtala Marko 1 participant 1 message Nov 22, 2000

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 for /proc/cpuinfo MHz

cat /proc/cpuinfo shows like this for 2.4.0-test11 (also in ac2)
cpu MHz : 132.000956

The "000" seems to be excess. linux/arch/i386/kernel/time.c has it right in time_init().

arch/i386/kernel/setup.c renamed from arch/i386/kernel/setup.c~ +1 -1
diff -u linux/arch/i386/kernel/setup.c\~ linux/arch/i386/kernel/setup.c
@@ -2113,7 +2113,7 @@
 			p += sprintf(p, "stepping\t: unknown\n");
 
 		if ( test_bit(X86_FEATURE_TSC, &c->x86_capability) ) {
-			p += sprintf(p, "cpu MHz\t\t: %lu.%06lu\n",
+			p += sprintf(p, "cpu MHz\t\t: %lu.%03lu\n",
 				cpu_khz / 1000, (cpu_khz % 1000));
 		}
 
Signature · 4 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/