diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2001-10-30 14:24:26 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2001-10-30 14:24:26 +0000 |
commit | b53da904729645fabfd1e8ffd8ce6c7a35853467 (patch) | |
tree | 691c51ffefcf06283c4301be3e45388a1d4306dc /sys/dev/acpica/acpivar.h | |
parent | 3b0536cd34108ab73586d9391245efde145f5112 (diff) | |
download | FreeBSD-src-b53da904729645fabfd1e8ffd8ce6c7a35853467.zip FreeBSD-src-b53da904729645fabfd1e8ffd8ce6c7a35853467.tar.gz |
Some improvements of control method battery driver.
- Add a new MIB for battery info expire time in order to make it changeable.
Battery info expire time can be specified by
hw.acpi.battery.info_expire in sec.
- Add own MALLOC type and fix some potential memory leakages.
- Change some frequent printings to verbose printing.
- Stop timeout during acpi_cmbat_get_bst() too. This should reduce
the races with BIF evaluation.
- Remove acpi_cmbat_get_bif() invocation from acpi_cmbat_attach().
This was redundant because this should be called from
acpi_cmbat_timeout() now.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index 7425ce5..5dd9619 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -329,6 +329,7 @@ struct acpi_battdesc; extern int acpi_battery_register(int, int); extern int acpi_battery_get_battinfo(int, struct acpi_battinfo *); extern int acpi_battery_get_units(void); +extern int acpi_battery_get_info_expire(void); extern int acpi_battery_get_battdesc(int, struct acpi_battdesc *); extern int acpi_cmbat_get_battinfo(int, struct acpi_battinfo *); |