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 x86/acpi: Mark acpica interrupt handlers M...



details:   https://anonhg.NetBSD.org/src/rev/7b9cd10feee5
branches:  trunk
changeset: 372149:7b9cd10feee5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Oct 28 21:58:27 2022 +0000

description:
x86/acpi: Mark acpica interrupt handlers MP-safe.

acpica has its own internal locking, and the interrupt handlers we
install with AcpiInstall*Handler (gpe, notify, &c.) also have their
own locking.

diffstat:

 sys/arch/x86/acpi/acpi_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 475a07f87bde -r 7b9cd10feee5 sys/arch/x86/acpi/acpi_machdep.c
--- a/sys/arch/x86/acpi/acpi_machdep.c  Fri Oct 28 21:57:58 2022 +0000
+++ b/sys/arch/x86/acpi/acpi_machdep.c  Fri Oct 28 21:58:27 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.33 2022/08/20 23:48:50 riastradh Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.34 2022/10/28 21:58:27 riastradh Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.33 2022/08/20 23:48:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.34 2022/10/28 21:58:27 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -223,7 +223,7 @@
        void *ih;
 
        ih = acpi_md_intr_establish(InterruptNumber, IPL_TTY, IST_LEVEL,
-           (int (*)(void *))ServiceRoutine, Context, false, xname);
+           (int (*)(void *))ServiceRoutine, Context, /*mpsafe*/true, xname);
        if (ih == NULL)
                return AE_NO_MEMORY;
 



Home | Main Index | Thread Index | Old Index