Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/acpi Only attach to usable processors
details: https://anonhg.NetBSD.org/src/rev/9cab2540305c
branches: trunk
changeset: 445182:9cab2540305c
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Oct 16 16:18:15 2018 +0000
description:
Only attach to usable processors
diffstat:
sys/arch/arm/acpi/cpu_acpi.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 4942ee6f1f12 -r 9cab2540305c sys/arch/arm/acpi/cpu_acpi.c
--- a/sys/arch/arm/acpi/cpu_acpi.c Tue Oct 16 13:18:25 2018 +0000
+++ b/sys/arch/arm/acpi/cpu_acpi.c Tue Oct 16 16:18:15 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_acpi.c,v 1.1 2018/10/12 22:20:04 jmcneill Exp $ */
+/* $NetBSD: cpu_acpi.c,v 1.2 2018/10/16 16:18:15 jmcneill Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_acpi.c,v 1.1 2018/10/12 22:20:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_acpi.c,v 1.2 2018/10/16 16:18:15 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -63,8 +63,14 @@
cpu_acpi_match(device_t parent, cfdata_t cf, void *aux)
{
ACPI_SUBTABLE_HEADER *hdrp = aux;
+ ACPI_MADT_GENERIC_INTERRUPT *gicc;
- return hdrp->Type == ACPI_MADT_TYPE_GENERIC_INTERRUPT;
+ if (hdrp->Type != ACPI_MADT_TYPE_GENERIC_INTERRUPT)
+ return 0;
+
+ gicc = (ACPI_MADT_GENERIC_INTERRUPT *)hdrp;
+
+ return (gicc->Flags & ACPI_MADT_ENABLED) != 0;
}
static void
Home |
Main Index |
Thread Index |
Old Index