Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2012 08:17:29 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240634 - head/sys/dev/acpica
Message-ID:  <201209180817.q8I8HTNH055322@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209180817.q8I8HTNH055322>