• Fenghua Yu's avatar
    x86, hwmon: Package Level Thermal/Power: thermal throttling handler · 55d435a2
    Fenghua Yu authored
    
    
    Add package level thermal throttle interrupt support. The interrupt handler
    increases package level thermal throttle count. It also logs the event in MCE
    log.
    
    The package level thermal throttle interrupt happens across threads in a
    package. Each thread handles the interrupt individually. User level application
    is supposed to retrieve correct event count and log based on package/thread
    topology. This is the same situation for core level interrupt handler. In the
    future, interrupt may be reported only per package or per core.
    
    core_throttle_count and package_throttle_count are used for user interface.
    Previously only throttle_count is used for core throttle count. If you think
    new core_throttle_count name breaks user interface, I can change this part.
    Signed-off-by: default avatarFenghua Yu <fenghua.yu@intel.com>
    LKML-Reference: <1280448826-12004-4-git-send-email-fenghua.yu@intel.com>
    Reviewed-by: default avatarLen Brown <len.brown@intel.com>
    Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
    55d435a2
therm_throt.c 10.9 KB