hwpstate_intel(4): Print failure message only on failure

X-MFC-With: r357379
This commit is contained in:
Conrad Meyer 2020-02-01 20:11:25 +00:00
parent cd4e43b27d
commit c93eb470b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357380

View File

@ -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: