Author: kan
Date: Sun Feb 26 21:24:27 2012
New Revision: 232199
URL: http://svn.freebsd.org/changeset/base/232199
Log:
Fix apparent logic reversal in setting the 'auto_mode' flag.
MFC after: 2 weeks
Modified:
head/sys/x86/cpufreq/p4tcc.c
Modified: head/sys/x86/cpufreq/p4tcc.c
==============================================================================
--- head/sys/x86/cpufreq/p4tcc.c Sun Feb 26 21:24:02 2012
(r232198)
+++ head/sys/x86/cpufreq/p4tcc.c Sun Feb 26 21:24:27 2012
(r232199)
@@ -276,9 +276,9 @@ p4tcc_set(device_t dev, const struct cf_
* 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);
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"