POLL causes concurrency issues with event driven batteries. Remove for now
authormarco <marco@openbsd.org>
Fri, 18 Jul 2008 03:54:18 +0000 (03:54 +0000)
committermarco <marco@openbsd.org>
Fri, 18 Jul 2008 03:54:18 +0000 (03:54 +0000)
until I have time to implement proper fix.

Noted by several folks.

sys/dev/acpi/acpiac.c

index 5cf1615..df35b92 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiac.c,v 1.23 2008/06/12 22:19:17 marco Exp $ */
+/* $OpenBSD: acpiac.c,v 1.24 2008/07/18 03:54:18 marco Exp $ */
 /*
  * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
  *
@@ -69,7 +69,7 @@ acpiac_attach(struct device *parent, struct device *self, void *aux)
        sc->sc_devnode = aa->aaa_node;
 
        aml_register_notify(sc->sc_devnode, aa->aaa_dev,
-           acpiac_notify, sc, ACPIDEV_POLL);
+           acpiac_notify, sc, ACPIDEV_NOPOLL);
 
        acpiac_getsta(sc);
        printf(": AC unit ");