mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-30 10:44:27 -04:00
powerpc/6xx: Use setup_timer() helper
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
83ad1e6a1d
commit
8d6b1bf20f
@@ -229,8 +229,7 @@ int __init TAU_init(void)
|
||||
|
||||
|
||||
/* first, set up the window shrinking timer */
|
||||
init_timer(&tau_timer);
|
||||
tau_timer.function = tau_timeout_smp;
|
||||
setup_timer(&tau_timer, tau_timeout_smp, 0UL);
|
||||
tau_timer.expires = jiffies + shrink_timer;
|
||||
add_timer(&tau_timer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user