Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c8940bd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: thermal: Add low limits cap mitigation governor" into msm-4.9

parents 64093f40 0dac0c13
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
+7 −0
Original line number Diff line number Diff line
@@ -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);
}