diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-08-05 17:38:32 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-08-17 14:09:39 +0200 |
commit | 63561fe36b094729d3d4d274bafaa030b39e89f6 (patch) | |
tree | 10de262355684f7379e25ff5d4ddae0dde2e11a2 /drivers/thermal/gov_fair_share.c | |
parent | thermal/core: Rework the monitoring a bit (diff) | |
download | linux-63561fe36b094729d3d4d274bafaa030b39e89f6.tar.xz linux-63561fe36b094729d3d4d274bafaa030b39e89f6.zip |
thermal/governors: Group the thermal zone lock inside the throttle function
The thermal zone lock is taken in the different places in the
throttling path.
At the first glance it does not hurt to move them at the beginning and
the end of the 'throttle' function. That will allow a consolidation of
the lock in the next following changes.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20220805153834.2510142-3-daniel.lezcano@linaro.org
Diffstat (limited to 'drivers/thermal/gov_fair_share.c')
-rw-r--r-- | drivers/thermal/gov_fair_share.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/gov_fair_share.c b/drivers/thermal/gov_fair_share.c index 6a2abcfc648f..5d5ddd648cd2 100644 --- a/drivers/thermal/gov_fair_share.c +++ b/drivers/thermal/gov_fair_share.c @@ -113,6 +113,7 @@ static int fair_share_throttle(struct thermal_zone_device *tz, int trip) } mutex_unlock(&tz->lock); + return 0; } |