Module Name:    src
Committed By:   para
Date:           Thu May 26 16:29:13 UTC 2011

Modified Files:
        src/sys/arch/x86/x86: x86_machdep.c

Log Message:
put userconf_bootinfo under option USERCONF, to allow kernels without that 
option


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/x86/x86/x86_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/x86_machdep.c
diff -u src/sys/arch/x86/x86/x86_machdep.c:1.47 src/sys/arch/x86/x86/x86_machdep.c:1.48
--- src/sys/arch/x86/x86/x86_machdep.c:1.47	Thu May 26 04:25:28 2011
+++ src/sys/arch/x86/x86/x86_machdep.c	Thu May 26 16:29:13 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: x86_machdep.c,v 1.47 2011/05/26 04:25:28 uebayasi Exp $	*/
+/*	$NetBSD: x86_machdep.c,v 1.48 2011/05/26 16:29:13 para Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,11 +31,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.47 2011/05/26 04:25:28 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.48 2011/05/26 16:29:13 para Exp $");
 
 #include "opt_modular.h"
 #include "opt_physmem.h"
 #include "opt_splash.h"
+#include "opt_userconf.h"
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -50,7 +51,10 @@
 #include <sys/module.h>
 #include <sys/sysctl.h>
 #include <sys/extent.h>
+
+#if defined(USERCONF)
 #include <sys/userconf.h>
+#endif /* defined(USERCONF) */
 
 #include <x86/cpuvar.h>
 #include <x86/cputypes.h>
@@ -178,6 +182,7 @@
 }
 #endif	/* MODULAR */
 
+#if defined(USERCONF)
 void
 userconf_bootinfo(void)
 {
@@ -197,6 +202,7 @@
 		userconf_parse(bi->text);
 	}
 }
+#endif /* defined USERCONF) */
 
 void
 cpu_need_resched(struct cpu_info *ci, int flags)

Reply via email to