Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2012 21:24:27 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232199 - head/sys/x86/cpufreq
Message-ID:  <201202262124.q1QLORF6083736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202262124.q1QLORF6083736>