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 It turns out we're actually waiting for ot...
details: https://anonhg.NetBSD.org/src/rev/1520f1096ea8
branches: trunk
changeset: 781192:1520f1096ea8
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Aug 26 01:04:03 2012 +0000
description:
It turns out we're actually waiting for other processors to be unbusy, not busy.
Unbreaks ACPI suspend on uniprocessor. Probably fixes unnoticed bugs on MP.
Needs pullup to netbsd-6.
diffstat:
sys/arch/x86/acpi/acpi_wakeup.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 390c481e94b1 -r 1520f1096ea8 sys/arch/x86/acpi/acpi_wakeup.c
--- a/sys/arch/x86/acpi/acpi_wakeup.c Sat Aug 25 22:21:16 2012 +0000
+++ b/sys/arch/x86/acpi/acpi_wakeup.c Sun Aug 26 01:04:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_wakeup.c,v 1.31 2012/04/20 22:23:24 rmind Exp $ */
+/* $NetBSD: acpi_wakeup.c,v 1.32 2012/08/26 01:04:03 jakllsch Exp $ */
/*-
* Copyright (c) 2002, 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.31 2012/04/20 22:23:24 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.32 2012/08/26 01:04:03 jakllsch Exp $");
/*-
* Copyright (c) 2001 Takanori Watanabe <takawata%jp.freebsd.org@localhost>
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.31 2012/04/20 22:23:24 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_wakeup.c,v 1.32 2012/08/26 01:04:03 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -320,7 +320,7 @@
/* Save and suspend Application Processors. */
x86_broadcast_ipi(X86_IPI_ACPI_CPU_SLEEP);
cid = cpu_index(curcpu());
- while (!kcpuset_isotherset(kcpuset_running, cid)) {
+ while (kcpuset_isotherset(kcpuset_running, cid)) {
delay(1);
}
#endif
Home |
Main Index |
Thread Index |
Old Index