Commit 6f63af7
committed
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.org1 parent 8358a76 commit 6f63af7
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4470 | 4470 | | |
4471 | 4471 | | |
4472 | 4472 | | |
4473 | | - | |
| 4473 | + | |
| 4474 | + | |
4474 | 4475 | | |
4475 | 4476 | | |
4476 | 4477 | | |
| |||
4504 | 4505 | | |
4505 | 4506 | | |
4506 | 4507 | | |
| 4508 | + | |
4507 | 4509 | | |
4508 | 4510 | | |
4509 | 4511 | | |
4510 | | - | |
4511 | | - | |
4512 | 4512 | | |
4513 | 4513 | | |
4514 | 4514 | | |
| |||
4667 | 4667 | | |
4668 | 4668 | | |
4669 | 4669 | | |
4670 | | - | |
4671 | | - | |
4672 | | - | |
4673 | 4670 | | |
4674 | 4671 | | |
| 4672 | + | |
| 4673 | + | |
4675 | 4674 | | |
4676 | | - | |
4677 | 4675 | | |
4678 | 4676 | | |
4679 | 4677 | | |
| |||
0 commit comments