mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] for /proc/cpuinfo MHz
@ 2000-11-22 22:40 Kohtala Marko
  0 siblings, 0 replies; only message in thread
From: Kohtala Marko @ 2000-11-22 22:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

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().

diff -u linux/arch/i386/kernel/setup.c\~ linux/arch/i386/kernel/setup.c
--- linux/arch/i386/kernel/setup.c~	Wed Nov 22 21:43:15 2000
+++ linux/arch/i386/kernel/setup.c	Thu Nov 23 00:16:32 2000
@@ -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));
 		}

-- 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-22 23:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-22 22:40 [PATCH] for /proc/cpuinfo MHz Kohtala Marko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®