]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
intel_hwpstate(4): Don't leak bound thread in error conditions
authorcem <cem@FreeBSD.org>
Sat, 1 Feb 2020 17:30:45 +0000 (17:30 +0000)
committercem <cem@FreeBSD.org>
Sat, 1 Feb 2020 17:30:45 +0000 (17:30 +0000)
commitd81505cc918c6253e250d16cd9f3d6e44113f68d
tree84d11750bb8dd2d98d8d14b48edab0744d808186
parente9573a300fc30d00e0c22add307fe7812c82979c
intel_hwpstate(4): Don't leak bound thread in error conditions

I don't know why a Skylake CPU with the HWP feature bit present would trap
on MSR reads of the HWP registers, but if this occurs, do not leave the
attach thread bound.  This could conceivably cause reported hangs, although
I have no evidence that this is the cause.

Reported by: ae@, Andreas Nilsson <andrnils AT gmail.com>
X-MFC-With: r357002
sys/x86/cpufreq/hwpstate_intel.c