Skip to content

Commit

Permalink
IPV4: route rekey timer can be deferrable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Apr 10, 2008
1 parent 1294fc4 commit 2fa7527
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2fa7527

Please sign in to comment.