summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/p4tcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/p4tcc.c b/sys/arch/i386/i386/p4tcc.c
index b718e48a3e0..7f3e5b75d3f 100644
--- a/sys/arch/i386/i386/p4tcc.c
+++ b/sys/arch/i386/i386/p4tcc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p4tcc.c,v 1.7 2006/06/13 20:47:42 miod Exp $ */
+/* $OpenBSD: p4tcc.c,v 1.8 2006/06/15 13:18:51 dim Exp $ */
/*
* Copyright (c) 2003 Ted Unangst
* All rights reserved.
@@ -110,7 +110,7 @@ p4tcc_setperf(int level)
wrmsr(MSR_THERM_CONTROL, msreg);
vet = rdmsr(MSR_THERM_CONTROL);
- if (vet != msreg) {
+ if ((vet & 0x1e) != (msreg & 0x1e)) {
printf("p4_tcc: cpu did not honor request\n");
return (EIO);
}