From c768421a3af03828a495ddd736019805298ba2ce Mon Sep 17 00:00:00 2001 From: pgoyette Date: Wed, 12 Dec 2012 22:43:35 +0000 Subject: [PATCH] With recent introduction of conditionals for the various MP options, we broke the build for x86 systems that have MULTIPROCESSOR but which do not include MPBIOS. So let's try to untangle things just a bit. Presented on current-users (and referenced on source-changes-d) without any comment. XXX We really should find a better method to select kernel options; #ifdef spaghetti is rather sub-optimal. --- sys/arch/x86/x86/cpu.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/arch/x86/x86/cpu.c b/sys/arch/x86/x86/cpu.c index 95145d619448..2ac86dc9e2e4 100644 --- a/sys/arch/x86/x86/cpu.c +++ b/sys/arch/x86/x86/cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.101 2012/12/08 12:36:31 kiyohara Exp $ */ +/* $NetBSD: cpu.c,v 1.102 2012/12/12 22:43:35 pgoyette Exp $ */ /*- * Copyright (c) 2000-2012 NetBSD Foundation, Inc. @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.101 2012/12/08 12:36:31 kiyohara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.102 2012/12/12 22:43:35 pgoyette Exp $"); #include "opt_ddb.h" #include "opt_mpbios.h" /* for MPDEBUG */ @@ -89,13 +89,16 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.101 2012/12/08 12:36:31 kiyohara Exp $"); #include +#include "acpica.h" /* for NACPICA, for mp_verbose */ + #include #include #include #include -#if MPBIOS > 0 +#if defined(MULTIPROCESSOR) #include #endif +#include /* for mp_verbose */ #include #include #include