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

Skip to content
Commit e43901b4 authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: qcom: rpmh: Use wait_event instead of wait_event_interruptible



wait_event_interruptible() breaks out of wait for all sorts of signals,
which is undesirable here. wait_event() waits for the completion events
that we want.

Reboot issues a signal to all waiting threads and once the wait is
complete, we wind up the stack and the RPMH message objects that were
allocated in the stack are no longer valid. wait_event() solves this
issue by continuing to wait, until the completion signal is received.

Change-Id: I3a0e8da5a317a4bc5c0599c30aa2f745890259db
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent cb6b743e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment