Loading Documentation/devicetree/bindings/thermal/thermal.txt +2 −0 Original line number Diff line number Diff line Loading @@ -176,6 +176,8 @@ Optional property: "power_allocator": Use power allocator governor. "low_limits_floor": Use low limits floor mitigation governor. "low_limits_cap": Use a low limits cap mitigation governor. Type: string - sustainable-power: An estimate of the sustainable power (in mW) that the Loading drivers/thermal/gov_low_limits.c +7 −0 Original line number Diff line number Diff line Loading @@ -112,12 +112,19 @@ static struct thermal_governor thermal_gov_low_limits_floor = { .min_state_throttle = 1, }; static struct thermal_governor thermal_gov_low_limits_cap = { .name = "low_limits_cap", .throttle = low_limits_throttle, }; int thermal_gov_low_limits_register(void) { thermal_register_governor(&thermal_gov_low_limits_cap); return thermal_register_governor(&thermal_gov_low_limits_floor); } void thermal_gov_low_limits_unregister(void) { thermal_unregister_governor(&thermal_gov_low_limits_cap); thermal_unregister_governor(&thermal_gov_low_limits_floor); } Loading
Documentation/devicetree/bindings/thermal/thermal.txt +2 −0 Original line number Diff line number Diff line Loading @@ -176,6 +176,8 @@ Optional property: "power_allocator": Use power allocator governor. "low_limits_floor": Use low limits floor mitigation governor. "low_limits_cap": Use a low limits cap mitigation governor. Type: string - sustainable-power: An estimate of the sustainable power (in mW) that the Loading
drivers/thermal/gov_low_limits.c +7 −0 Original line number Diff line number Diff line Loading @@ -112,12 +112,19 @@ static struct thermal_governor thermal_gov_low_limits_floor = { .min_state_throttle = 1, }; static struct thermal_governor thermal_gov_low_limits_cap = { .name = "low_limits_cap", .throttle = low_limits_throttle, }; int thermal_gov_low_limits_register(void) { thermal_register_governor(&thermal_gov_low_limits_cap); return thermal_register_governor(&thermal_gov_low_limits_floor); } void thermal_gov_low_limits_unregister(void) { thermal_unregister_governor(&thermal_gov_low_limits_cap); thermal_unregister_governor(&thermal_gov_low_limits_floor); }