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

Commit d9d72ae7 authored by Shaoqing Liu's avatar Shaoqing Liu Committed by Gerrit - the friendly Code Review server
Browse files

Coresight: remove mutex_trylock in coresight_abort



Mutex_trylock must not be used in interrupt context.

Change-Id: I4654e5e1e058efe86218b5319e8bfd57a2beb357
Signed-off-by: default avatarShaoqing Liu <shaoqingliu@codeaurora.org>
parent 6c813797
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -742,20 +742,13 @@ EXPORT_SYMBOL(coresight_disable);

void coresight_abort(void)
{
	if (!mutex_trylock(&coresight_mutex)) {
		pr_err("coresight: abort could not be processed\n");
		return;
	}
	if (!curr_sink)
		goto out;
		return;

	if (curr_sink->enable && sink_ops(curr_sink)->abort) {
		sink_ops(curr_sink)->abort(curr_sink);
		curr_sink->enable = false;
	}

out:
	mutex_unlock(&coresight_mutex);
}
EXPORT_SYMBOL(coresight_abort);