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 Fix boolean brain freeze.
details: https://anonhg.NetBSD.org/src/rev/086cfd3115f6
branches: trunk
changeset: 759166:086cfd3115f6
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Nov 30 18:44:07 2010 +0000
description:
Fix boolean brain freeze.
diffstat:
sys/arch/x86/acpi/acpi_cpu_md.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 98592a1800b8 -r 086cfd3115f6 sys/arch/x86/acpi/acpi_cpu_md.c
--- a/sys/arch/x86/acpi/acpi_cpu_md.c Tue Nov 30 18:38:53 2010 +0000
+++ b/sys/arch/x86/acpi/acpi_cpu_md.c Tue Nov 30 18:44:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_md.c,v 1.35 2010/11/30 04:31:00 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_md.c,v 1.36 2010/11/30 18:44:07 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_md.c,v 1.35 2010/11/30 04:31:00 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.36 2010/11/30 18:44:07 jruoho Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -603,7 +603,11 @@
xc = xc_broadcast(0, (xcfunc_t)x86_msr_xcall, &msr, NULL);
xc_wait(xc);
- if (acpicpu_pstate_status != false) {
+ /*
+ * Due several problems, we bypass the
+ * relatively expensive status check.
+ */
+ if (acpicpu_pstate_status != true) {
DELAY(ps->ps_latency);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index