summaryrefslogtreecommitdiffstats
path: root/sys/x86
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2012-02-26 21:24:27 +0000
committerkan <kan@FreeBSD.org>2012-02-26 21:24:27 +0000
commit04fe43e989321ae5b9d2db4bf8c031213c63a736 (patch)
treec6ff10e9487007ab7aabfa982ddb3cca8ac063c6 /sys/x86
parentc1bac816f55e7ef0fe1646e34c5a71c76c66723f (diff)
downloadFreeBSD-src-04fe43e989321ae5b9d2db4bf8c031213c63a736.zip
FreeBSD-src-04fe43e989321ae5b9d2db4bf8c031213c63a736.tar.gz
Fix apparent logic reversal in setting the 'auto_mode' flag.
MFC after: 2 weeks
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/cpufreq/p4tcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/x86/cpufreq/p4tcc.c b/sys/x86/cpufreq/p4tcc.c
index 29279e3..e11b4a8 100644
--- a/sys/x86/cpufreq/p4tcc.c
+++ b/sys/x86/cpufreq/p4tcc.c
@@ -276,9 +276,9 @@ p4tcc_set(device_t dev, const struct cf_setting *set)
* what the current mode.
*/
if (msr & TCC_ENABLE_ONDEMAND)
- sc->auto_mode = TRUE;
- else
sc->auto_mode = FALSE;
+ else
+ sc->auto_mode = TRUE;
return (0);
}
OpenPOWER on IntegriCloud