CVSROOT:        /cvs
Module name:    src
Changes by:     kette...@cvs.openbsd.org        2010/11/10 14:40:55

Modified files:
        sys/dev/acpi   : acpibat.c 

Log message:
The acpibat(4) notify function should not unconditionally call both _BIF
and _BST.  Some machines (like the Toshiba Satellite Pro U550 18F mentioned
in PR 6508) have AML that does a Notify(0x81) from the _BST method, which leads
to infinite recursion.  Instead call _BIF when the argument is 0x81 and call
_BST when the argument is 0x80 or 0x00 (the latter indicates we're polling).
Simplify the battery detection logic while there.

ok mikeb@, marco@

Reply via email to