diff options
author | Stephen Boyd <sboyd@kernel.org> | 2024-03-25 11:41:56 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2024-04-07 19:29:51 -0700 |
commit | 6f63af7511e7058f3fa4ad5b8102210741c9f947 (patch) | |
tree | 3f0d8f729e6aa39a3cef0d2fe046590c2a2616f0 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8358a76cfb47c9a5af627a0c4e7168aa14fa25f6 (diff) |
clk: Don't hold prepare_lock when calling kref_put()
We don't need to hold the prepare_lock when dropping a ref on a struct
clk_core. The release function is only freeing memory and any code with
a pointer reference has already unlinked anything pointing to the
clk_core. This reduces the holding area of the prepare_lock a bit.
Note that we also don't call free_clk() with the prepare_lock held.
There isn't any reason to do that.
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240325184204.745706-3-sboyd@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions