summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-22 17:41:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-04-22 17:41:51 +0000
commitc5f258751d5ab53d2cdc8032ba54692d7d8b5c7f (patch)
tree9b97b4238e4323d69e5f9eaed4c59e3d53751fca /sys/arch
parentbd0dbc60b7182396d27b9b13c385b058a4901d66 (diff)
permit compilation without I586_CPU or I686_CPU; armin@wolfermann.org
Diffstat (limited to 'sys/arch')
-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;