svn commit: r357380 - head/sys/x86/cpufreq

Conrad Meyer cem at FreeBSD.org
Sat Feb 1 20:11:25 UTC 2020


Author: cem
Date: Sat Feb  1 20:11:25 2020
New Revision: 357380
URL: https://svnweb.freebsd.org/changeset/base/357380

Log:
  hwpstate_intel(4): Print failure message only on failure
  
  X-MFC-With: r357379

Modified:
  head/sys/x86/cpufreq/hwpstate_intel.c

Modified: head/sys/x86/cpufreq/hwpstate_intel.c
==============================================================================
--- head/sys/x86/cpufreq/hwpstate_intel.c	Sat Feb  1 19:50:10 2020	(r357379)
+++ head/sys/x86/cpufreq/hwpstate_intel.c	Sat Feb  1 20:11:25 2020	(r357380)
@@ -604,8 +604,10 @@ intel_hwpstate_resume(device_t dev)
 	}
 	if (sc->hwp_pkg_ctrl_en) {
 		ret = wrmsr_safe(MSR_IA32_HWP_REQUEST_PKG, sc->req);
-		device_printf(dev,
-		    "Failed to set autonomous HWP for package after suspend\n");
+		if (ret)
+			device_printf(dev,
+			    "Failed to set autonomous HWP for package after "
+			    "suspend\n");
 	}
 
 out:


More information about the svn-src-all mailing list