Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 pmc_init: check ncpu instead of cpus_atta...



details:   https://anonhg.NetBSD.org/src/rev/6493a994cb3b
branches:  trunk
changeset: 773321:6493a994cb3b
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Jan 30 21:35:22 2012 +0000

description:
pmc_init: check ncpu instead of cpus_attached.

diffstat:

 sys/arch/i386/i386/pmc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4f742b584775 -r 6493a994cb3b sys/arch/i386/i386/pmc.c
--- a/sys/arch/i386/i386/pmc.c  Mon Jan 30 21:10:30 2012 +0000
+++ b/sys/arch/i386/i386/pmc.c  Mon Jan 30 21:35:22 2012 +0000
@@ -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 @@
 
 #ifdef MULTIPROCESSOR
        /* XXX */
-       if (cpus_attached > 1)
+       if (ncpu > 1)
                goto done;
 #endif
 



Home | Main Index | Thread Index | Old Index