Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Add a note about AcpiEnterSleepStatePrep().



details:   https://anonhg.NetBSD.org/src/rev/e7fc12315150
branches:  trunk
changeset: 754259:e7fc12315150
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun Apr 25 09:12:38 2010 +0000

description:
Add a note about AcpiEnterSleepStatePrep().

diffstat:

 sys/dev/acpi/acpi.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 702c90bf586c -r e7fc12315150 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Sun Apr 25 07:12:10 2010 +0000
+++ b/sys/dev/acpi/acpi.c       Sun Apr 25 09:12:38 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.187 2010/04/24 19:51:15 jruoho Exp $        */
+/*     $NetBSD: acpi.c,v 1.188 2010/04/25 09:12:38 jruoho Exp $        */
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.187 2010/04/24 19:51:15 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.188 2010/04/25 09:12:38 jruoho Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -1462,6 +1462,13 @@
                        break;
                }
 
+               /*
+                * This will evaluate the  _PTS and _SST methods,
+                * but unlike the documentation claims, not _GTS,
+                * which is evaluated in AcpiEnterSleepState().
+                *
+                * This must be called with interrupts enabled.
+                */
                rv = AcpiEnterSleepStatePrep(state);
 
                if (ACPI_FAILURE(rv)) {



Home | Main Index | Thread Index | Old Index