summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/i386/procfs_machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/procfs_machdep.c b/sys/arch/i386/i386/procfs_machdep.c
index 111b6e082c8..22e8e11abb2 100644
--- a/sys/arch/i386/i386/procfs_machdep.c
+++ b/sys/arch/i386/i386/procfs_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_machdep.c,v 1.1 2001/04/09 07:14:16 tholo Exp $ */
+/* $OpenBSD: procfs_machdep.c,v 1.2 2001/04/22 17:41:50 deraadt Exp $ */
/* $NetBSD: procfs_machdep.c,v 1.6 2001/02/21 21:39:59 jdolecek Exp $ */
/*
@@ -115,11 +115,12 @@ procfs_getcpuinfstr(char *buf, int *len)
if (left <= 0)
return 0;
-
+#if defined(I586_CPU) || defined(I686_CPU)
if (pentium_mhz != 0)
l = snprintf(p, left, "cpu MHz\t\t: %d\n",
pentium_mhz);
else
+#endif
l = snprintf(p, left, "cpu MHz\t\t: unknown\n");
left -= l;