summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/isp
diff options
context:
space:
mode:
authorxtraeme <xtraeme@NetBSD.org>2007-11-03 23:05:21 +0000
committerxtraeme <xtraeme@NetBSD.org>2007-11-03 23:05:21 +0000
commit4e10a8485581088a3d9789854873d07cc95aec10 (patch)
treeb117617091e4e509da2ee7b588a6343cdf2ecd06 /sys/dev/microcode/isp
parentad0f60a40b6ba7618f08267afba39ddc118c205e (diff)
- Rename ENVSYS_BATTERY_STATE units to ENVSYS_BATTERY_CAPACITY and
introduce ENVSYS_BATTERY_CHARGE, which is the same than an Indicator and it's used to know if the battery is currently charging or discharging. - Require two sensors at least for SME_CLASS_BATTERY to make the low-power condition work: a ENVSYS_BATTERY_CAPACITY plus ENVSYS_BATTERY_CHARGE. - Simplify sme_event_check_lowpower() and make it check the required sensors in the SME_CLASS_ACADAPTER and SME_CLASS_BATTERY classes. If the acadapter is not ready, trust the state returned by the battery device. Based on suggestion from joerg@.
Diffstat (limited to 'sys/dev/microcode/isp')
0 files changed, 0 insertions, 0 deletions