If a trip of type critical is defined before any trip of passive or active type, power_allocator governor will not switch on.
Signed-off-by: Willy Wolff <[email protected]> --- drivers/thermal/power_allocator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/power_allocator.c b/drivers/thermal/power_allocator.c index 3055f9a12a17..6544b68e3ebf 100644 --- a/drivers/thermal/power_allocator.c +++ b/drivers/thermal/power_allocator.c @@ -496,8 +496,6 @@ static void get_governor_trips(struct thermal_zone_device *tz, } } else if (type == THERMAL_TRIP_ACTIVE) { last_active = i; - } else { - break; } } -- 2.11.0

