Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Check the cold-flag also in the notify handler.



details:   https://anonhg.NetBSD.org/src/rev/9a0020bf0226
branches:  trunk
changeset: 757093:9a0020bf0226
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Aug 14 11:16:14 2010 +0000

description:
Check the cold-flag also in the notify handler.

diffstat:

 sys/dev/acpi/acpi_cpu.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r ce5c7a20c517 -r 9a0020bf0226 sys/dev/acpi/acpi_cpu.c
--- a/sys/dev/acpi/acpi_cpu.c   Sat Aug 14 11:12:16 2010 +0000
+++ b/sys/dev/acpi/acpi_cpu.c   Sat Aug 14 11:16:14 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu.c,v 1.15 2010/08/13 16:21:50 jruoho Exp $ */
+/* $NetBSD: acpi_cpu.c,v 1.16 2010/08/14 11:16:14 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu.c,v 1.15 2010/08/13 16:21:50 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu.c,v 1.16 2010/08/14 11:16:14 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -454,6 +454,9 @@
 
        sc = device_private(self);
 
+       if (sc->sc_cold != false)
+               return;
+
        switch (evt) {
 
        case ACPICPU_C_NOTIFY:



Home | Main Index | Thread Index | Old Index