mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
timers, drivers/tty/metag_da: Initialize the poll timer as pinned
Pinned timers must carry the pinned attribute in the timer structure itself, so convert the code to the new API. No functional change. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Cc: Arjan van de Ven <[email protected]> Cc: Chris Mason <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: George Spelvin <[email protected]> Cc: Josh Triplett <[email protected]> Cc: Len Brown <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
25df57605e
commit
01bab536b1
1 changed files with 2 additions and 2 deletions
|
|
@ -323,12 +323,12 @@ static void dashtty_timer(unsigned long ignored)
|
|||
if (channel >= 0)
|
||||
fetch_data(channel);
|
||||
|
||||
mod_timer_pinned(&poll_timer, jiffies + DA_TTY_POLL);
|
||||
mod_timer(&poll_timer, jiffies + DA_TTY_POLL);
|
||||
}
|
||||
|
||||
static void add_poll_timer(struct timer_list *poll_timer)
|
||||
{
|
||||
setup_timer(poll_timer, dashtty_timer, 0);
|
||||
setup_pinned_timer(poll_timer, dashtty_timer, 0);
|
||||
poll_timer->expires = jiffies + DA_TTY_POLL;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue