mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 12:11:59 +02:00
clk: qcom: clk-debug: Remove mutex locking from trace probe callback
Trace probe callbacks are called with preemption disabled and locking a mutex inside it is not allowed since it can potentially sleep. Hence remove support for mutex locking in suspend trace probe callback. The resource protected by this mutex clk_hw_debug_list is modified only during registering and deregistering clocks which won't happen during the suspend path, so it is safe to remove the mutex locking. Change-Id: I525099f8bae74808c9690abb43b2dc2da9c0fc88 Signed-off-by: Jagadeesh Kona <quic_jkona@quicinc.com>
This commit is contained in:
parent
8f5453b4c5
commit
d0154ed359
|
|
@ -966,9 +966,7 @@ static void clk_debug_suspend_trace_probe(void *unused,
|
|||
{
|
||||
if (start && val > 0 && !strcmp("machine_suspend", action)) {
|
||||
pr_info("Enabled Clocks:\n");
|
||||
mutex_lock(&clk_debug_lock);
|
||||
clock_debug_print_enabled_clocks(NULL);
|
||||
mutex_unlock(&clk_debug_lock);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user