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

Skip to content
Commit 6e3caa1e authored by Eric Holmberg's avatar Eric Holmberg
Browse files

hwspinlock/msm: correct pid for release functionality



Valid remote spinlock processor ID's are 1..N, but the processor IDs
start at 0.  To fix this, the value written to the HW Mutex is PID + 1.
Because the release functionality was using the PID for comparison, the
remote spinlock was not being properly released during subsystem restart
processing which would ultimately result in a watchdog if the remote
subsystem failed with the remote spinlock locked.

Update the release functions to compare the lock value with PID + 1.

CRs-Fixed: 725337
Change-Id: I4d484b5d37cfd1f9f8c6a3290ed378812620b130
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
parent f19ef0f6
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