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

Skip to content
Commit b1962a40 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Prudhvi Yarlagadda
Browse files

rpmsg: smd: Use spinlock in tx path



Backporting the change from 4.19 kernel to 4.14 kernel.

By switching the tx_lock to a spinlock we allow clients to use
rpmsg_trysend() from atomic context.

The mutex was interruptable as it was previously held for the duration
of some client waiting for available space in the FIFO, but this was
recently changed to only be held temporarily - allowing us to replace it
with a spinlock.

Change-Id: Ib645758b7c5f7e8b475dfa0c7dab4b11d30ea6b9
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 33e3820dda8876792bd8135db633c741a07263be
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarPrudhvi Yarlagadda <pyarlaga@codeaurora.org>
parent ae43e061
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