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 Disable C1E also on K8, if present. From I...
details: https://anonhg.NetBSD.org/src/rev/cd677e09f641
branches: trunk
changeset: 783108:cd677e09f641
user: jruoho <jruoho%NetBSD.org@localhost>
date: Thu Dec 06 04:43:29 2012 +0000
description:
Disable C1E also on K8, if present. From Imre Vadasz <imre%vdsz.com@localhost>
in PR install/47224.
diffstat:
sys/arch/x86/acpi/acpi_cpu_md.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r f788a30166aa -r cd677e09f641 sys/arch/x86/acpi/acpi_cpu_md.c
--- a/sys/arch/x86/acpi/acpi_cpu_md.c Wed Dec 05 23:59:33 2012 +0000
+++ b/sys/arch/x86/acpi/acpi_cpu_md.c Thu Dec 06 04:43:29 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_md.c,v 1.71 2012/02/11 22:09:47 jruoho Exp $ */
+/* $NetBSD: acpi_cpu_md.c,v 1.72 2012/12/06 04:43:29 jruoho Exp $ */
/*-
* Copyright (c) 2010, 2011 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.71 2012/02/11 22:09:47 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.72 2012/12/06 04:43:29 jruoho Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -253,6 +253,12 @@
case 0x0f:
/*
+ * Disable C1E if present.
+ */
+ if (rdmsr_safe(MSR_CMPHALT, &msr) != EFAULT)
+ val |= ACPICPU_FLAG_C_C1E;
+
+ /*
* Evaluate support for the "FID/VID
* algorithm" also used by powernow(4).
*/
@@ -268,6 +274,9 @@
case 0x10:
case 0x11:
+ /*
+ * Disable C1E if present.
+ */
if (rdmsr_safe(MSR_CMPHALT, &msr) != EFAULT)
val |= ACPICPU_FLAG_C_C1E;
Home |
Main Index |
Thread Index |
Old Index