]> git.baikalelectronics.ru Git - kernel.git/commit
random: clean up interrupt entropy accounting for archs w/o cycle counters
authorTheodore Ts'o <tytso@mit.edu>
Sat, 14 Jun 2014 07:06:57 +0000 (03:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Jul 2014 08:49:39 +0000 (04:49 -0400)
commita7885be83d38362e75e05ab5b04f5767ef424b19
tree70cd554b7b5d7badbefdffc06067b28ad09fd749
parent849041c32104f14a72dc7e2c2a565e1937e4137e
random: clean up interrupt entropy accounting for archs w/o cycle counters

For architectures that don't have cycle counters, the algorithm for
deciding when to avoid giving entropy credit due to back-to-back timer
interrupts didn't make any sense, since we were checking every 64
interrupts.  Change it so that we only give an entropy credit if the
majority of the interrupts are not based on the timer.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: George Spelvin <linux@horizon.com>
drivers/char/random.c