Module Name: src
Committed By: jruoho
Date: Fri Feb 18 07:00:05 UTC 2011
Modified Files:
src/sys/dev/acpi: acpi_cpu_tstate.c
Log Message:
Remove the (debug) check that evaluated whether the first T-state (i.e. the
100 % duty cycle) had control value of zero, as in the IA32 clock modulation
MSR. As the access may be based on I/O, it is unclear if a strict validation
like this was correct. Should fix the problem reported by Hisashi T Fujinaka
on current users.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/acpi/acpi_cpu_tstate.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_cpu_tstate.c
diff -u src/sys/dev/acpi/acpi_cpu_tstate.c:1.19 src/sys/dev/acpi/acpi_cpu_tstate.c:1.20
--- src/sys/dev/acpi/acpi_cpu_tstate.c:1.19 Sun Jan 30 08:55:52 2011
+++ src/sys/dev/acpi/acpi_cpu_tstate.c Fri Feb 18 07:00:05 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_tstate.c,v 1.19 2011/01/30 08:55:52 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_tstate.c,v 1.20 2011/02/18 07:00:05 jruoho Exp $ */
/*-
* Copyright (c) 2010 Jukka Ruohonen <[email protected]>
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_tstate.c,v 1.19 2011/01/30 08:55:52 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_tstate.c,v 1.20 2011/02/18 07:00:05 jruoho Exp $");
#include <sys/param.h>
#include <sys/evcnt.h>
@@ -355,15 +355,6 @@
goto out;
}
- /*
- * The first entry with 100 % duty cycle
- * should have zero in the control field.
- */
- if (sc->sc_tstate[0].ts_control != 0) {
- rv = AE_AML_BAD_RESOURCE_VALUE;
- goto out;
- }
-
out:
if (buf.Pointer != NULL)
ACPI_FREE(buf.Pointer);