]> git.baikalelectronics.ru Git - kernel.git/commit
random32: use msecs_to_jiffies for reseed timer
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 12 Nov 2013 22:45:42 +0000 (23:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 21:06:02 +0000 (16:06 -0500)
commitbeba1be93688d0f90d29c1166a79e2cd370436b8
tree2f592b7a2597b93ad262945d3deca0d169ef5e1b
parent3ff19cdc2193f72bff9c234ef49ea075abd57a16
random32: use msecs_to_jiffies for reseed timer

Use msecs_to_jiffies, for these calculations as different HZ
considerations are taken into account for conversion of the timer
shot, and also it makes the code more readable.

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