]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: qcom: llcc: Use guards for mutex handling
authorUnnathi Chalicheemala <unnathi.chalicheemala@oss.qualcomm.com>
Fri, 6 Mar 2026 03:12:06 +0000 (19:12 -0800)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Mar 2026 01:33:55 +0000 (20:33 -0500)
commiteda32f68ce7a3d16071870c7af0803fdfae40401
treead53b83e8dc81695406ef9d6e974c0fe2986735f
parent45c2a55d13c698ba6a281315676934c44225b034
soc: qcom: llcc: Use guards for mutex handling

Replacing manual lock/unlock pairs with guard() removes the need to
think about unlocking entirely and keeps the function trivially
structured.

Signed-off-by: Unnathi Chalicheemala <unnathi.chalicheemala@oss.qualcomm.com>
Signed-off-by: Francisco Munoz Ruiz <francisco.ruiz@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260305-external_llcc_changes1set-v1-2-6347e52e648e@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/llcc-qcom.c