Module Name: src
Committed By: jruoho
Date: Thu Mar 17 15:32:18 UTC 2011
Modified Files:
src/sys/dev/acpi: acpi_cpu_cstate.c
Log Message:
Add a comment.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/acpi/acpi_cpu_cstate.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/acpi_cpu_cstate.c
diff -u src/sys/dev/acpi/acpi_cpu_cstate.c:1.50 src/sys/dev/acpi/acpi_cpu_cstate.c:1.51
--- src/sys/dev/acpi/acpi_cpu_cstate.c:1.50 Fri Mar 4 09:28:34 2011
+++ src/sys/dev/acpi/acpi_cpu_cstate.c Thu Mar 17 15:32:18 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_cstate.c,v 1.50 2011/03/04 09:28:34 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_cstate.c,v 1.51 2011/03/17 15:32:18 jruoho Exp $ */
/*-
* Copyright (c) 2010, 2011 Jukka Ruohonen <[email protected]>
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.50 2011/03/04 09:28:34 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.51 2011/03/17 15:32:18 jruoho Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -345,6 +345,11 @@
case ACPI_STATE_C1:
+ /*
+ * If ACPI wants native access (FFH), but the
+ * MD code does not support MONITOR/MWAIT, use
+ * HLT for C1 and error out for higher C-states.
+ */
if ((sc->sc_flags & ACPICPU_FLAG_C_FFH) == 0)
state.cs_method = ACPICPU_C_STATE_HALT;