svn commit: r240634 - head/sys/dev/acpica

Andriy Gapon avg at FreeBSD.org
Tue Sep 18 08:17:30 UTC 2012


Author: avg
Date: Tue Sep 18 08:17:29 2012
New Revision: 240634
URL: http://svn.freebsd.org/changeset/base/240634

Log:
  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

Modified:
  head/sys/dev/acpica/acpi_cpu.c

Modified: head/sys/dev/acpica/acpi_cpu.c
==============================================================================
--- head/sys/dev/acpica/acpi_cpu.c	Tue Sep 18 08:12:28 2012	(r240633)
+++ head/sys/dev/acpica/acpi_cpu.c	Tue Sep 18 08:17:29 2012	(r240634)
@@ -1063,6 +1063,8 @@ acpi_cpu_notify(ACPI_HANDLE h, UINT32 no
     ACPI_SERIAL_BEGIN(cpu);
     acpi_cpu_set_cx_lowest(sc);
     ACPI_SERIAL_END(cpu);
+
+    acpi_UserNotify("PROCESSOR", sc->cpu_handle, notify);
 }
 
 static int


More information about the svn-src-head mailing list