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 Allow 4-bit range for MSR_THERM_CONTROL.
details: https://anonhg.NetBSD.org/src/rev/f117f51a3e45
branches: trunk
changeset: 791483:f117f51a3e45
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed Nov 20 13:52:30 2013 +0000
description:
Allow 4-bit range for MSR_THERM_CONTROL.
diffstat:
sys/arch/x86/acpi/acpi_cpu_md.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a77cfd5bd8cd -r f117f51a3e45 sys/arch/x86/acpi/acpi_cpu_md.c
--- a/sys/arch/x86/acpi/acpi_cpu_md.c Wed Nov 20 13:39:59 2013 +0000
+++ b/sys/arch/x86/acpi/acpi_cpu_md.c Wed Nov 20 13:52:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_md.c,v 1.73 2013/11/15 08:47:55 msaitoh Exp $ */
+/* $NetBSD: acpi_cpu_md.c,v 1.74 2013/11/20 13:52:30 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.73 2013/11/15 08:47:55 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.74 2013/11/20 13:52:30 jruoho Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -986,7 +986,7 @@
uint8_t i;
val = ts->ts_control;
- val = val & __BITS(1, 4);
+ val = val & __BITS(0, 4);
wrmsr(MSR_THERM_CONTROL, val);
Home |
Main Index |
Thread Index |
Old Index