Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 acpi_md_ncpus(): use cpu_attached instead o...



details:   https://anonhg.NetBSD.org/src/rev/fa3d9c26281d
branches:  trunk
changeset: 760869:fa3d9c26281d
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Jan 14 18:33:34 2011 +0000

description:
acpi_md_ncpus(): use cpu_attached instead of cpus_running.

diffstat:

 sys/arch/x86/x86/acpi_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 04113b8ef601 -r fa3d9c26281d sys/arch/x86/x86/acpi_machdep.c
--- a/sys/arch/x86/x86/acpi_machdep.c   Fri Jan 14 18:12:47 2011 +0000
+++ b/sys/arch/x86/x86/acpi_machdep.c   Fri Jan 14 18:33:34 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_machdep.c,v 1.28 2011/01/13 03:40:50 jruoho Exp $ */
+/*     $NetBSD: acpi_machdep.c,v 1.29 2011/01/14 18:33:34 jruoho Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.28 2011/01/13 03:40:50 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.29 2011/01/14 18:33:34 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -72,7 +72,7 @@
 #include "opt_mpbios.h"
 #include "opt_acpi.h"
 
-extern uint32_t cpus_running;
+extern uint32_t cpus_attached;
 
 ACPI_STATUS
 acpi_md_OsInitialize(void)
@@ -288,7 +288,7 @@
 uint32_t
 acpi_md_ncpus(void)
 {
-       return popcount32(cpus_running);
+       return popcount32(cpus_attached);
 }
 
 void



Home | Main Index | Thread Index | Old Index