diff options
author | Bart Van Assche <[email protected]> | 2024-09-17 12:39:14 -0700 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2024-10-15 22:35:53 +0200 |
commit | f6da4553ff24a5d1c959c9627c965323adc3d307 (patch) | |
tree | 0d89b17885bcbc396193fc922a11dff0f13d6631 /tools/perf/scripts/python/stackcollapse.py | |
parent | 85d319e14f301e1c68131b74c1dceabae73d1e81 (diff) |
power: supply: core: Remove might_sleep() from power_supply_put()
The put_device() call in power_supply_put() may call
power_supply_dev_release(). The latter function does not sleep so
power_supply_put() doesn't sleep either. Hence, remove the might_sleep()
call from power_supply_put(). This patch suppresses false positive
complaints about calling a sleeping function from atomic context if
power_supply_put() is called from atomic context.
Cc: Kyle Tso <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Fixes: 1a352462b537 ("power_supply: Add power_supply_put for decrementing device reference counter")
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions