Module Name: src
Committed By: rmind
Date: Mon Jan 30 21:35:22 UTC 2012
Modified Files:
src/sys/arch/i386/i386: pmc.c
Log Message:
pmc_init: check ncpu instead of cpus_attached.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/i386/i386/pmc.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/i386/i386/pmc.c
diff -u src/sys/arch/i386/i386/pmc.c:1.19 src/sys/arch/i386/i386/pmc.c:1.20
--- src/sys/arch/i386/i386/pmc.c:1.19 Tue Apr 27 18:41:52 2010
+++ src/sys/arch/i386/i386/pmc.c Mon Jan 30 21:35:22 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: pmc.c,v 1.19 2010/04/27 18:41:52 dyoung Exp $ */
+/* $NetBSD: pmc.c,v 1.20 2012/01/30 21:35:22 rmind Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.19 2010/04/27 18:41:52 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.20 2012/01/30 21:35:22 rmind Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -79,7 +79,7 @@ pmc_init(void)
#ifdef MULTIPROCESSOR
/* XXX */
- if (cpus_attached > 1)
+ if (ncpu > 1)
goto done;
#endif