summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-04-10 01:55:27 -0700
committerDavid S. Miller <davem@davemloft.net>2008-04-10 01:55:27 -0700
commit2fa7527ba1d38175d1e42f7cb72bae5de3d55cc7 (patch)
tree48de882ae62ab51871142e2d6477e5d94fc1908a /net
parent1294fc4a4868d7e83ff749597fbf4e9d5f4d1aa0 (diff)
downloadlinux-2fa7527ba1d38175d1e42f7cb72bae5de3d55cc7.tar.bz2
IPV4: route rekey timer can be deferrable
No urgency on the rehash interval timer, so mark it as deferrable. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 7cdd2bf88e0c..a1c5b8dbdfed 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -3058,7 +3058,9 @@ int __init ip_rt_init(void)
devinet_init();
ip_fib_init();
- setup_timer(&rt_secret_timer, rt_secret_rebuild, 0);
+ rt_secret_timer.function = rt_secret_rebuild;
+ rt_secret_timer.data = 0;
+ init_timer_deferrable(&rt_secret_timer);
/* All the timers, started at system startup tend
to synchronize. Perturb it a bit.