Use crit_enter()/crit_exit() in OsdInterrupt
authorAlexander Polakov <polachok@gmail.com>
Wed, 14 Oct 2009 18:22:28 +0000 (22:22 +0400)
committerAlexander Polakov <polachok@gmail.com>
Wed, 14 Oct 2009 18:22:28 +0000 (22:22 +0400)
sys/dev/acpica5/Osd/OsdInterrupt.c

index 06aa685..78a76fe 100644 (file)
@@ -157,9 +157,7 @@ acpi_OverrideInterruptLevel(UINT32 InterruptNumber)
 static void
 InterruptWrapper(void *arg)
 {
-    ACPI_LOCK_DECL;
-
-    ACPI_LOCK;
+    crit_enter();
     InterruptHandler(arg);
-    ACPI_UNLOCK;
+    crit_exit();
 }