PM1 power button events were generating 'fake events' to acpibtn PWRB,
authorderaadt <deraadt@openbsd.org>
Thu, 5 Aug 2010 17:26:57 +0000 (17:26 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 5 Aug 2010 17:26:57 +0000 (17:26 +0000)
commit5ae37d65765e853c15873e03390a389798614694
tree46ff365d67c54c3e573e1e7d1be2020bb8b5ae49
parentef4bccd7509e7afa389cd6f3eddde1ae4d0cd48f
PM1 power button events were generating 'fake events' to acpibtn PWRB,
but if there is no such device these were being tossed.  Instead, arrange
for all power button handlers to flag a softc variable which is processed
by the thread; so that one place will know to request a powerdown (psignal
to init)
ok marco mlarkin
sys/dev/acpi/acpi.c
sys/dev/acpi/acpibtn.c
sys/dev/acpi/acpivar.h