Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 954336a1 authored by Tao Zhang's avatar Tao Zhang Committed by Gerrit - the friendly Code Review server
Browse files

coresight-tmc-etr: Fix deadlock issue while switching mode



In ETR mode switch stress test, there will be a deadlock issue if
fail to enable ETM source. Since switch mode function will hold
mem_lock and call tmc_disable_etr_sink if ETM failed to be enabled.
Meanwhile, tmc_disable_etr_sink also need to hold mem_lock. Release
mem_lock before calling coresight_enable_all_source_link to fix this
deadlock issue.

Change-Id: I0e9040e79e8ef5278f7b279ce2f7265147ef2b74
Signed-off-by: default avatarTao Zhang <taozha@codeaurora.org>
parent e8c7d22e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment