summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2012-09-18 08:17:29 +0000
committeravg <avg@FreeBSD.org>2012-09-18 08:17:29 +0000
commit28643e5478e5d85a2d08f5e8d995fa80d414931d (patch)
tree3a34c1399afe4be2cf74b20e5d751ceab6e159c2 /sys/dev/acpica
parentb551beb3a3d331b357ec3a5f99f16ec51b7d8a22 (diff)
downloadFreeBSD-src-28643e5478e5d85a2d08f5e8d995fa80d414931d.zip
FreeBSD-src-28643e5478e5d85a2d08f5e8d995fa80d414931d.tar.gz
acpi_cpu: explicitly notify userland about c-state changes
... after they are committed. A notification is sent per CPU. Reviewed by: imp MFC after: 3 weeks
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index d35a526..01534027 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -1063,6 +1063,8 @@ acpi_cpu_notify(ACPI_HANDLE h, UINT32 notify, void *context)
ACPI_SERIAL_BEGIN(cpu);
acpi_cpu_set_cx_lowest(sc);
ACPI_SERIAL_END(cpu);
+
+ acpi_UserNotify("PROCESSOR", sc->cpu_handle, notify);
}
static int
OpenPOWER on IntegriCloud