All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thermal: power_allocator: remove early break
@ 2018-09-21 13:06 Willy Wolff
  2018-09-24 16:45 ` Eduardo Valentin
  0 siblings, 1 reply; 3+ messages in thread
From: Willy Wolff @ 2018-09-21 13:06 UTC (permalink / raw)
  To: Zhang Rui, Eduardo Valentin, Daniel Lezcano, linux-pm, linux-kernel

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 <willy.mh.wolff.ml@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-26 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21 13:06 [PATCH] thermal: power_allocator: remove early break Willy Wolff
2018-09-24 16:45 ` Eduardo Valentin
2018-09-26 22:24   ` Willy Wolff

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.