diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-12-26 23:58:09 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-12-26 23:58:09 +0000 |
commit | 3ec9d9f20a5eb8e2025c6a5eba8af1ebae8c222e (patch) | |
tree | bbac69a627ad9988c23c4bb304bd82b068e66355 /sys/dev/acpi/acpibat.c | |
parent | 419e67afcb1e33df77313f59d0ae8b207f0ecf2b (diff) |
Add polling to devices that require it such as acpibat and acpitz.
Use the same tsleep/wakeup mechanism as the interrupt code to keep it non-
concurrent.
Diffstat (limited to 'sys/dev/acpi/acpibat.c')
-rw-r--r-- | sys/dev/acpi/acpibat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpibat.c b/sys/dev/acpi/acpibat.c index e20ae8f01b7..d719a94c3be 100644 --- a/sys/dev/acpi/acpibat.c +++ b/sys/dev/acpi/acpibat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpibat.c,v 1.36 2006/12/23 17:46:39 deraadt Exp $ */ +/* $OpenBSD: acpibat.c,v 1.37 2006/12/26 23:58:08 marco Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * @@ -98,7 +98,7 @@ acpibat_attach(struct device *parent, struct device *self, void *aux) acpibat_refresh(sc); aml_register_notify(sc->sc_devnode->parent, aa->aaa_dev, - acpibat_notify, sc); + acpibat_notify, sc, ACPIDEV_POLL); } void @@ -345,8 +345,6 @@ acpibat_notify(struct aml_node *node, int notify_type, void *arg) } break; default: - printf("%s: unhandled battery event %x\n", DEVNAME(sc), - notify_type); break; } |