Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/acpi Claim to support the dependency coordinati...



details:   https://anonhg.NetBSD.org/src/rev/bf2bbe3d5f27
branches:  trunk
changeset: 762762:bf2bbe3d5f27
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun Feb 27 17:27:28 2011 +0000

description:
Claim to support the dependency coordination during the _PDC/_OSC query.
(Although we do not actually support it.) Only after these bits are set,
many Intel-based BIOSes are willing to relinquish the necessary information.

diffstat:

 sys/arch/x86/acpi/acpi_cpu_md.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 514f8546d8dd -r bf2bbe3d5f27 sys/arch/x86/acpi/acpi_cpu_md.c
--- a/sys/arch/x86/acpi/acpi_cpu_md.c   Sun Feb 27 17:10:33 2011 +0000
+++ b/sys/arch/x86/acpi/acpi_cpu_md.c   Sun Feb 27 17:27:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_md.c,v 1.46 2011/02/25 17:23:34 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_md.c,v 1.47 2011/02/27 17:27:28 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010, 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.46 2011/02/25 17:23:34 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.47 2011/02/27 17:27:28 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -130,10 +130,15 @@
                return val;
 
        /*
-        * Basic SMP C-states (required for _CST).
+        * Basic SMP C-states (required for e.g. _CST).
         */
        val |= ACPICPU_PDC_C_C1PT | ACPICPU_PDC_C_C2C3;
 
+       /*
+        * Claim to support dependency coordination.
+        */
+       val |= ACPICPU_PDC_P_SW | ACPICPU_PDC_C_SW | ACPICPU_PDC_T_SW;
+
         /*
         * If MONITOR/MWAIT is available, announce
         * support for native instructions in all C-states.



Home | Main Index | Thread Index | Old Index