Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_smbat.c
Show All 12 Lines | |||||
static int acpi_smbat_shutdown(device_t dev); | static int acpi_smbat_shutdown(device_t dev); | ||||
static int acpi_smbat_info_expired(struct timespec *lastupdated); | static int acpi_smbat_info_expired(struct timespec *lastupdated); | ||||
static void acpi_smbat_info_updated(struct timespec *lastupdated); | static void acpi_smbat_info_updated(struct timespec *lastupdated); | ||||
static int acpi_smbat_get_bif(device_t dev, struct acpi_bif *bif); | static int acpi_smbat_get_bif(device_t dev, struct acpi_bif *bif); | ||||
static int acpi_smbat_get_bst(device_t dev, struct acpi_bst *bst); | static int acpi_smbat_get_bst(device_t dev, struct acpi_bst *bst); | ||||
ACPI_SERIAL_DECL(smbat, "ACPI Smart Battery"); | ACPI_SERIAL_DECL(smbat, "ACPI Smart Battery"); | ||||
static SYSCTL_NODE(_debug_acpi, OID_AUTO, batt, CTLFLAG_RD, NULL, | static SYSCTL_NODE(_debug_acpi, OID_AUTO, batt, | ||||
CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, | |||||
"Battery debugging"); | "Battery debugging"); | ||||
/* On some laptops with smart batteries, enabling battery monitoring | /* On some laptops with smart batteries, enabling battery monitoring | ||||
* software causes keystrokes from atkbd to be lost. This has also been | * software causes keystrokes from atkbd to be lost. This has also been | ||||
* reported on Linux, and is apparently due to the keyboard and I2C line | * reported on Linux, and is apparently due to the keyboard and I2C line | ||||
* for the battery being routed through the same chip. Whether that's | * for the battery being routed through the same chip. Whether that's | ||||
* accurate or not, adding extra sleeps to the status checking code | * accurate or not, adding extra sleeps to the status checking code | ||||
* causes the problem to go away. | * causes the problem to go away. | ||||
Show All 12 Lines |