summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-10-29 15:28:05 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-10-29 15:28:05 +0000
commit983998573b7dc21ad48b25993ae45e462e19fce4 (patch)
tree1e6e0e6a81cdf82bfa8963d98f3c953e92de0666 /sys/dev
parent9ad4b9fbd23f20dfba948ff900e518b43e7f2e70 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi_acad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
index 638c09be635e..8153abc4f3b5 100644
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -109,13 +109,14 @@ acpi_acad_get_status(void *context)
ACPI_SERIAL_BEGIN(acad);
if (newstatus != -1 && sc->status != newstatus) {
sc->status = newstatus;
+ ACPI_SERIAL_END(acad);
power_profile_set_state(newstatus ? POWER_PROFILE_PERFORMANCE :
POWER_PROFILE_ECONOMY);
ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev),
"%s Line\n", newstatus ? "On" : "Off");
acpi_UserNotify("ACAD", h, newstatus);
- }
- ACPI_SERIAL_END(acad);
+ } else
+ ACPI_SERIAL_END(acad);
}
static void