Module Name: src Committed By: jruoho Date: Sun Apr 25 09:12:38 UTC 2010
Modified Files: src/sys/dev/acpi: acpi.c Log Message: Add a note about AcpiEnterSleepStatePrep(). To generate a diff of this commit: cvs rdiff -u -r1.187 -r1.188 src/sys/dev/acpi/acpi.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.c diff -u src/sys/dev/acpi/acpi.c:1.187 src/sys/dev/acpi/acpi.c:1.188 --- src/sys/dev/acpi/acpi.c:1.187 Sat Apr 24 19:51:15 2010 +++ src/sys/dev/acpi/acpi.c Sun Apr 25 09:12:38 2010 @@ -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)) {