Module Name:    src
Committed By:   riastradh
Date:           Fri Oct 28 21:58:27 UTC 2022

Modified Files:
        src/sys/arch/x86/acpi: acpi_machdep.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/x86/acpi/acpi_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/acpi/acpi_machdep.c
diff -u src/sys/arch/x86/acpi/acpi_machdep.c:1.33 src/sys/arch/x86/acpi/acpi_machdep.c:1.34
--- src/sys/arch/x86/acpi/acpi_machdep.c:1.33	Sat Aug 20 23:48:50 2022
+++ src/sys/arch/x86/acpi/acpi_machdep.c	Fri Oct 28 21:58:27 2022
@@ -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 @@ acpi_md_OsInstallInterruptHandler(uint32
 	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;
 

Reply via email to