diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-22 13:34:59 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-10-04 02:28:02 +0200 |
commit | 8d6b1bf20f61cd5358fdc5fa83d7fc11c8393d8a (patch) | |
tree | 193ded814f429f2d4ff5abc3c941493c9fac546f | |
parent | powerpc/oprofile: Use setup_timer() helper (diff) | |
download | linux-8d6b1bf20f61cd5358fdc5fa83d7fc11c8393d8a.tar.xz linux-8d6b1bf20f61cd5358fdc5fa83d7fc11c8393d8a.zip |
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>
-rw-r--r-- | arch/powerpc/kernel/tau_6xx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/tau_6xx.c b/arch/powerpc/kernel/tau_6xx.c index a753b72efbc0..726c2d683f93 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -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); |