net: use a deferred timer in rt_check_expire
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 11 Jun 2009 20:10:07 +0000 (20:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Jun 2009 06:36:31 +0000 (23:36 -0700)
commit125bb8f5637bd653244728f734bcac218986d910
tree1d78145dd39b13d2dcc0eb5426b8d1c18b035f03
parent13be8a126850692839934116fbdaf008bfdedec1
net: use a deferred timer in rt_check_expire

For the sake of power saver lovers, use a deferrable timer to fire
rt_check_expire()

As some big routers cache equilibrium depends on garbage collection
done in time, we take into account elapsed time between two
rt_check_expire() invocations to adjust the amount of slots we have to
check.

Based on an initial idea and patch from Tero Kristo

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c