PD#TV-7920
Problem:
Audio drive caused kernel panic.
BUG_ON timer_pending.
Solution:
Add timer will panic calling add_timer.
If timer is pending we need use mod_timer
to deal with this case.
Verify:
T962
Change-Id: Ib4143de384af40803609c3513ad07eeb3fe59bbf
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
hrtimer_start(&prtd->hrtimer, prtd->wakeups_per_second,
HRTIMER_MODE_REL);
#else
- prtd->timer.expires = jiffies + 1;
- add_timer(&prtd->timer);
+ mod_timer(&prtd->timer, jiffies + 1);
#endif
#endif
prtd->active = 1;