git: corepower: Use rdmsr_safe to check availibility of the MSRs first.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sat Nov 7 03:58:11 PST 2015


commit 384c0adde583153f4a5895c5d686c1e51473c2bc
Author: Imre Vadász <imre at vdsz.com>
Date:   Thu Nov 5 22:16:06 2015 +0100

    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.

Summary of changes:
 sys/dev/powermng/corepower/corepower.c | 39 ++++++++++++++++++++++++++++++----
 1 file changed, 35 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/384c0adde583153f4a5895c5d686c1e51473c2bc


-- 
DragonFly BSD source repository


More information about the Commits mailing list