]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: igmp6_event_query: use msecs_to_jiffies
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 20 Aug 2013 10:22:00 +0000 (12:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 06:52:02 +0000 (23:52 -0700)
commit66b3cc8c38cfb9b1d904d694369d275a026f65b5
tree282a9eacb2f268ef50d4c769078157b10a5c3877
parent8e0808a3585f188c98fb100b86d50f57994f4822
net: ipv6: igmp6_event_query: use msecs_to_jiffies

Use proper API functions to calculate jiffies from milliseconds and
not the crude method of dividing HZ by a value. This ensures more
accurate values even in the case of strange HZ values. While at it,
also simplify code in the mlh2 case by using max().

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c