[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180921130609.j3esni6xwhi2ew7d@inc028000032.lancs.ac.uk>
Date: Fri, 21 Sep 2018 14:06:09 +0100
From: Willy Wolff <willy.mh.wolff.ml@...il.com>
To: Zhang Rui <rui.zhang@...el.com>,
Eduardo Valentin <edubezval@...il.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] thermal: power_allocator: remove early break
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@...il.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
Powered by blists - more mailing lists