Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/acpi acpi_md_ncpus: use kcpuset_attached instead.
details: https://anonhg.NetBSD.org/src/rev/d94f17f84ea6
branches: trunk
changeset: 773322:d94f17f84ea6
user: rmind <rmind%NetBSD.org@localhost>
date: Mon Jan 30 21:47:24 2012 +0000
description:
acpi_md_ncpus: use kcpuset_attached instead.
diffstat:
sys/arch/x86/acpi/acpi_machdep.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r 6493a994cb3b -r d94f17f84ea6 sys/arch/x86/acpi/acpi_machdep.c
--- a/sys/arch/x86/acpi/acpi_machdep.c Mon Jan 30 21:35:22 2012 +0000
+++ b/sys/arch/x86/acpi/acpi_machdep.c Mon Jan 30 21:47:24 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.2 2011/07/01 18:22:39 dyoung Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.3 2012/01/30 21:47:24 rmind Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -40,11 +40,12 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.2 2011/07/01 18:22:39 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.3 2012/01/30 21:47:24 rmind Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
+#include <sys/cpu.h>
#include <sys/device.h>
#include <uvm/uvm_extern.h>
@@ -72,8 +73,6 @@
#include "opt_mpbios.h"
#include "opt_acpi.h"
-extern uint32_t cpus_attached;
-
ACPI_STATUS
acpi_md_OsInitialize(void)
{
@@ -280,7 +279,7 @@
uint32_t
acpi_md_ncpus(void)
{
- return popcount32(cpus_attached);
+ return kcpuset_countset(kcpuset_attached);
}
void
Home |
Main Index |
Thread Index |
Old Index