Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi On systems where both the existing EST code and...



details:   https://anonhg.NetBSD.org/src/rev/03d895fd0b7e
branches:  trunk
changeset: 756989:03d895fd0b7e
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Mon Aug 09 15:56:45 2010 +0000

description:
On systems where both the existing EST code and the one provided by ACPI are
functional, the previously loaded EST code may have used frequencies that
are not present in the BIOS. This will cause failures since acpicpu(4) will
treat these unknown frequencies as errors. "Fix" this by initializing the
cached P-state to P0, regardless of what the true state might be.

diffstat:

 sys/dev/acpi/acpi_cpu_pstate.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d36aefd32b80 -r 03d895fd0b7e sys/dev/acpi/acpi_cpu_pstate.c
--- a/sys/dev/acpi/acpi_cpu_pstate.c    Mon Aug 09 15:50:13 2010 +0000
+++ b/sys/dev/acpi/acpi_cpu_pstate.c    Mon Aug 09 15:56:45 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_pstate.c,v 1.5 2010/08/09 04:27:07 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_pstate.c,v 1.6 2010/08/09 15:56:45 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_pstate.c,v 1.5 2010/08/09 04:27:07 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_pstate.c,v 1.6 2010/08/09 15:56:45 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -81,6 +81,7 @@
                sc->sc_flags |= ACPICPU_FLAG_P_PPC;
 
        sc->sc_flags |= ACPICPU_FLAG_P;
+       sc->sc_pstate_current = sc->sc_pstate[0].ps_freq;
 
        acpicpu_pstate_bios();
        acpicpu_pstate_attach_print(sc);



Home | Main Index | Thread Index | Old Index