corepower: Use rdmsr_safe to check availibility of the MSRs first.
authorImre Vadász <imre@vdsz.com>
Thu, 5 Nov 2015 21:16:06 +0000 (22:16 +0100)
committerImre Vadász <imre@vdsz.com>
Sat, 7 Nov 2015 11:46:50 +0000 (12:46 +0100)
commit384c0adde583153f4a5895c5d686c1e51473c2bc
treef7b45f158fa941bf5fc22ab72b6d3895c0abcb5e
parentf337a7f986d73205e506fd96a9d057ca86560661
corepower: Use rdmsr_safe to check availibility of the MSRs first.

This should avoid panic-ing in virtual machines where the RAPL MSRs are
not available.
sys/dev/powermng/corepower/corepower.c