diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2004-10-11 06:18:07 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2004-10-11 06:18:07 +0000 |
| commit | a0885d3f142b53d9c58bc933d715dfd73e84f9f9 (patch) | |
| tree | 22597d1179e5c97b68bb44411cbce68ae2dfe122 /sys/dev | |
| parent | 18ececa0b8264fd6212348236f43311bc9a0c4e9 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/acpi_cmbat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_cmbat.c b/sys/dev/acpica/acpi_cmbat.c index 90f46a4128470..6bcd4a056d3d3 100644 --- a/sys/dev/acpica/acpi_cmbat.c +++ b/sys/dev/acpica/acpi_cmbat.c @@ -189,6 +189,10 @@ acpi_cmbat_get_bst(void *context) goto end; acpi_cmbat_info_updated(&sc->bst_lastupdated); + /* XXX Should we shut down here? */ + if (sc->bst.state & ACPI_BATT_STAT_CRITICAL) + device_printf(dev, "critically low charge!\n"); + end: if (bst_buffer.Pointer != NULL) AcpiOsFree(bst_buffer.Pointer); |
