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

Skip to content
Commit 2c027b10 authored by Kiran Raparthy's avatar Kiran Raparthy
Browse files

input: sensors : fix hrtimer deadlock



Rearming the timer resulting into kernel BUG.
start the timer after callback's job is done.
Also use safer hrtimer_try_to_cancel instead of
hrtimer_cancel.

Reported trace indicates that timer state is 3,
which is not the expected state.

Special cases:
0x03	callback function running and enqueued

so, it fails at below point in hrtimer.c when
timer rearmed (possibly) on  another CPU.

BUG_ON(timer->state != HRTIMER_STATE_CALLBACK);

Change-Id: I8e798208c6efe5187521d5933654d8640d3b38aa
Signed-off-by: default avatarKiran Raparthy <krapar@codeaurora.org>
parent 0b9a5592
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