[COMMON] thermal: power_alloctor: use only one passive trip point
authorHyeonseong Gil <hs.gil@samsung.com>
Fri, 7 Apr 2017 06:03:13 +0000 (15:03 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:18:41 +0000 (17:18 +0900)
Change-Id: I41998e0ffeef9bd10e717cd1d2bd6174c4f93c07
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/power_allocator.c

index eee892bdebc0e688aa4f1a036eae5e71cfdd5dde..8082bbf2b71989f277c05ebdded5c2fa67aabec7 100644 (file)
@@ -508,6 +508,7 @@ static void get_governor_trips(struct thermal_zone_device *tz,
                        if (!found_first_passive) {
                                params->trip_switch_on = i;
                                found_first_passive = true;
+                               break;
                        } else  {
                                last_passive = i;
                        }