aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLukasz Luba <[email protected]>2021-04-22 12:43:06 +0100
committerDaniel Lezcano <[email protected]>2021-04-22 14:10:28 +0200
commitb70dbf40eb075c596d86c42d93b86ff502290fc5 (patch)
tree01e82cd6eb5677ffb789563cf1a64b1f490d05b4 /tools/perf/util/trace-event-scripting.c
parent26b2f03d2adf43d0dc9aeeb3fff54dcc9fcdb1f4 (diff)
thermal/core: Create a helper __thermal_cdev_update() without a lock
There is a need to have a helper function which updates cooling device state from the governors code. With this change governor can use lock and unlock while calling helper function. This avoid unnecessary second time lock/unlock which was in previous solution present in governor implementation. This new helper function must be called with mutex 'cdev->lock' hold. The changed been discussed and part of code presented in thread: https://lore.kernel.org/linux-pm/[email protected]/ Co-developed-by: Daniel Lezcano <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Signed-off-by: Lukasz Luba <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions