Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

timers, drivers/tty/mips_ejtag: 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 <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Chris Mason <clm@fb.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: George Spelvin <linux@sciencehorizons.net>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Len Brown <lenb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160704094341.537448301@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Thomas Gleixner and committed by
Ingo Molnar
853f90d4 01bab536

+2 -2
+2 -2
drivers/tty/mips_ejtag_fdc.c
··· 689 689 690 690 mips_ejtag_fdc_handle(priv); 691 691 if (!priv->removing) 692 - mod_timer_pinned(&priv->poll_timer, jiffies + FDC_TTY_POLL); 692 + mod_timer(&priv->poll_timer, jiffies + FDC_TTY_POLL); 693 693 } 694 694 695 695 /* TTY Port operations */ ··· 1002 1002 raw_spin_unlock_irq(&priv->lock); 1003 1003 } else { 1004 1004 /* If we didn't get an usable IRQ, poll instead */ 1005 - setup_timer(&priv->poll_timer, mips_ejtag_fdc_tty_timer, 1005 + setup_pinned_timer(&priv->poll_timer, mips_ejtag_fdc_tty_timer, 1006 1006 (unsigned long)priv); 1007 1007 priv->poll_timer.expires = jiffies + FDC_TTY_POLL; 1008 1008 /*