Commit b57db9e0 authored by David Keitel's avatar David Keitel Committed by Stephen Boyd
Browse files

power: pm8921-charger: avoid schedule while atomic bug



If the loop_change interrupt handler directly invokes the
unplug_check_worker which uses msleep causing a bug.

Fix this by scheduling the work directly rather than invoking
the work function.

Change-Id: Id1ce75eddc1b7f09b7476af12b68ec8ae8ff1f24
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent 26417da6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment