Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[.joined/src/trunk]: .joined/src/sys/dev/acpi/acpica acpi(9): Implement AcpiO...



details:   https://anonhg.NetBSD.org/.joined/src/rev/674069d58658
branches:  trunk
changeset: 359336:674069d58658
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Dec 31 14:22:26 2021 +0000

description:
acpi(9): Implement AcpiOsWaitEventsComplete.

diffstat:

 sys/dev/acpi/acpica/OsdSchedule.c |  15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r aaaf8c1082d5 -r 674069d58658 sys/dev/acpi/acpica/OsdSchedule.c
--- a/sys/dev/acpi/acpica/OsdSchedule.c Fri Dec 31 14:22:10 2021 +0000
+++ b/sys/dev/acpi/acpica/OsdSchedule.c Fri Dec 31 14:22:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: OsdSchedule.c,v 1.19 2017/11/12 02:59:55 christos Exp $        */
+/*     $NetBSD: OsdSchedule.c,v 1.20 2021/12/31 14:22:26 riastradh Exp $       */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.19 2017/11/12 02:59:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.20 2021/12/31 14:22:26 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -101,6 +101,10 @@
 {
        int pri;
 
+       /*
+        * If you raise any priority here make sure to adjust
+        * AcpiOsWaitEventsComplete too.
+        */
        switch (Type) {
        case OSL_GPE_HANDLER:
                pri = 10;
@@ -185,14 +189,13 @@
 }
 
 /*
- *
  * AcpiOsWaitEventsComplete:
  *
- *     Wait for all asynchronous events to complete. This implementation
- *     does nothing.
+ *     Wait for all asynchronous events to complete.
  */
 void
 AcpiOsWaitEventsComplete(void)
 {
-       return;
+       /* Highest priority used by AcpiOsExecute.  */
+       sysmon_task_queue_barrier(10);
 }



Home | Main Index | Thread Index | Old Index