Skip to main content

decide_thermal_action

Function decide_thermal_action 

Source
pub fn decide_thermal_action(
    status: ThermalStatus,
    critical_streak: u32,
    auto_cap: bool,
    capped: bool,
) -> ThermalAction
Expand description

Pure enforcement decision (see ThermalAction). Hysteresis: only caps on sustained Critical, holds the cap through Warm, and restores only once back to Cool.