acpi_md_ncpus(): use cpu_attached instead of cpus_running.
This commit is contained in:
parent
7922e017f8
commit
a89366190f
@ -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.
|
* Copyright 2001 Wasabi Systems, Inc.
|
||||||
@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -72,7 +72,7 @@ __KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.28 2011/01/13 03:40:50 jruoho Exp
|
|||||||
#include "opt_mpbios.h"
|
#include "opt_mpbios.h"
|
||||||
#include "opt_acpi.h"
|
#include "opt_acpi.h"
|
||||||
|
|
||||||
extern uint32_t cpus_running;
|
extern uint32_t cpus_attached;
|
||||||
|
|
||||||
ACPI_STATUS
|
ACPI_STATUS
|
||||||
acpi_md_OsInitialize(void)
|
acpi_md_OsInitialize(void)
|
||||||
@ -288,7 +288,7 @@ acpi_md_OsEnableInterrupt(void)
|
|||||||
uint32_t
|
uint32_t
|
||||||
acpi_md_ncpus(void)
|
acpi_md_ncpus(void)
|
||||||
{
|
{
|
||||||
return popcount32(cpus_running);
|
return popcount32(cpus_attached);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user