svn commit: r225933 - stable/8/sys/dev/coretemp

Attilio Rao attilio at FreeBSD.org
Mon Oct 3 10:23:29 UTC 2011


Author: attilio
Date: Mon Oct  3 10:23:28 2011
New Revision: 225933
URL: http://svn.freebsd.org/changeset/base/225933

Log:
  MFC r225662:
  Cleanup #PROCHOT sticky assertion.
  
  Sponsored by:	Sandvine Incorporated

Modified:
  stable/8/sys/dev/coretemp/coretemp.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/coretemp/coretemp.c
==============================================================================
--- stable/8/sys/dev/coretemp/coretemp.c	Sun Oct  2 23:31:14 2011	(r225932)
+++ stable/8/sys/dev/coretemp/coretemp.c	Mon Oct  3 10:23:28 2011	(r225933)
@@ -384,6 +384,7 @@ coretemp_get_val_sysctl(SYSCTL_HANDLER_A
 	}
 
 	if (msr & THERM_STATUS_LOG) {
+		coretemp_clear_thermal_msr(device_get_unit(dev));
 		sc->sc_throttle_log = 1;
 
 		/*
@@ -424,8 +425,10 @@ coretemp_throttle_log_sysctl(SYSCTL_HAND
 	msr = coretemp_get_thermal_msr(device_get_unit(dev));
 	sc = device_get_softc(dev);
 
-	if (msr & THERM_STATUS_LOG)
+	if (msr & THERM_STATUS_LOG) {
+		coretemp_clear_thermal_msr(device_get_unit(dev));
 		sc->sc_throttle_log = 1;
+	}
 
 	val = sc->sc_throttle_log;
 


More information about the svn-src-stable-8 mailing list