summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-05-20 09:12:35 +0000
committerkettenis <kettenis@openbsd.org>2018-05-20 09:12:35 +0000
commitdff4f592e8cf9984df0a031ec9b142cd21a167fe (patch)
tree38df387e0ebc8a723950ca1988d3e0d46972d4ef
parentPrevent race condition if file system is accessed before it is (diff)
downloadwireguard-openbsd-dff4f592e8cf9984df0a031ec9b142cd21a167fe.tar.xz
wireguard-openbsd-dff4f592e8cf9984df0a031ec9b142cd21a167fe.zip
Wake up the acpi thread after scheduling a gpio event.
ok mpi@
-rw-r--r--sys/dev/acpi/acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 6a486cc51ae..9536a7e6f23 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.343 2018/05/17 20:46:45 kettenis Exp $ */
+/* $OpenBSD: acpi.c,v 1.344 2018/05/20 09:12:35 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -861,6 +861,7 @@ acpi_gpio_event(void *arg)
struct acpi_gpio_event *ev = arg;
acpi_addtask(acpi_softc, acpi_gpio_event_task, ev->node, ev->pin);
+ acpi_wakeup(acpi_softc);
return 1;
}