summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-02-14 11:22:26 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-02-14 11:22:26 +0000
commit49f44c996ebd807d6823edfee11f60c9852ef9f7 (patch)
tree3e71757dee88c9e7347914c078007431556b2f01
parente92282fdcfa29e99c9a8a70a36b8f1dbae5a4264 (diff)
Don't call cpu_setup() twice on non-MULTIPROCESSOR kernels. Fixes problems
with longrun on the Transmeta Crusoe. tested by ian@, grange@ ok hshoexer@, weingart@
-rw-r--r--sys/arch/i386/i386/machdep.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 1b3d3390a51..1de573184ad 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.444 2009/01/20 20:21:03 mlarkin Exp $ */
+/* $OpenBSD: machdep.c,v 1.445 2009/02/14 11:22:25 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -1814,12 +1814,6 @@ identifycpu(struct cpu_info *ci)
}
}
-#ifndef MULTIPROCESSOR
- /* configure the CPU if needed */
- if (ci->cpu_setup != NULL)
- (ci->cpu_setup)(ci);
-#endif
-
#ifndef SMALL_KERNEL
if (cpuspeed != 0 && cpu_cpuspeed == NULL)
cpu_cpuspeed = pentium_cpuspeed;