Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Set the flag for checking for PCI bus master ac...



details:   https://anonhg.NetBSD.org/src/rev/df1d4edaafec
branches:  trunk
changeset: 777613:df1d4edaafec
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Feb 25 17:22:52 2012 +0000

description:
Set the flag for checking for PCI bus master activity only for C3.

diffstat:

 sys/dev/acpi/acpi_cpu_cstate.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 282578a33359 -r df1d4edaafec sys/dev/acpi/acpi_cpu_cstate.c
--- a/sys/dev/acpi/acpi_cpu_cstate.c    Sat Feb 25 17:03:34 2012 +0000
+++ b/sys/dev/acpi/acpi_cpu_cstate.c    Sat Feb 25 17:22:52 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_cstate.c,v 1.58 2011/10/13 05:20:45 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_cstate.c,v 1.59 2012/02/25 17:22:52 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_cstate.c,v 1.58 2011/10/13 05:20:45 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_cstate.c,v 1.59 2012/02/25 17:22:52 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -243,8 +243,6 @@
 
        (void)memset(&state, 0, sizeof(*cs));
 
-       state.cs_flags = ACPICPU_FLAG_C_BM_STS;
-
        if (elm->Type != ACPI_TYPE_PACKAGE) {
                rv = AE_TYPE;
                goto out;
@@ -350,6 +348,9 @@
 
                        break;
 
+               case ACPI_STATE_C3: /* FALLTHROUGH */
+                       state.cs_flags = ACPICPU_FLAG_C_BM_STS;
+
                default:
 
                        if ((sc->sc_flags & ACPICPU_FLAG_C_FFH) == 0) {



Home | Main Index | Thread Index | Old Index