-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msm-tsens: Reschedule work instead of causing uninterruptible sleep
The tsens_poll work causes uninterruptible sleep on the UI thread and thus blocks other tasks from running due to the msleep call. To avoid this condition, we introduce a variable to hold the staging state of the critical polling and reschedule the work itself to be executed again after the same duration as the msleep. Additionally we switch the currently unused wq to a singlethreaded wq and queue the tsens work onto that wq. Change-Id: I0bf48837310decd035d35ac78aa7d51614032b36 Signed-off-by: Alex Naidis <alex.naidis@linux.com> Signed-off-by: Ícaro Hoff <icarohoff@gmail.com>
- Loading branch information
1 parent
caec4c6
commit d671bf7
Showing
1 changed file
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters