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

Skip to content
Commit 87313e3e authored by Zhenhua Huang's avatar Zhenhua Huang
Browse files

power: qpnp-linear-charger: avoid mutex_lock in atomic context



Spin_lock_irqsave function called in get_prop_capacity() introduces
an atomic context. A mutex_lock is called in the context and this
results a warning message. Use mutex instead of spin_lock to avoid
this condition.

Change-Id: I8098f74bb6888f4cb514199c5636d3fc6cede91d
Signed-off-by: default avatarZhenhua Huang <zhenhuah@codeaurora.org>
parent 91719459
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