lkml.org 
[lkml]   [2022]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] thermal/core: Move the thermal zone lock out of the governors
On Fri, Aug 05, 2022 at 05:38:33PM +0200, Daniel Lezcano wrote:
> All the governors throttling ops are taking/releasing the lock at the
> beginning and the end of the function.
>
> We can move the mutex to the throttling call site instead.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> ---
> drivers/thermal/gov_bang_bang.c | 4 +---
> drivers/thermal/gov_fair_share.c | 4 +---
> drivers/thermal/gov_power_allocator.c | 16 ++++++----------
> drivers/thermal/gov_step_wise.c | 4 +---
> drivers/thermal/thermal_core.c | 2 ++

This doesn't drop the lock from drivers/thermal/gov_user_space.c.
Is that on purpose ?

Thanks,
Guenter

\
 
 \ /
  Last update: 2022-10-04 16:15    [W:0.118 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site