random: use lockless techniques in the interrupt path
authorTheodore Ts'o <tytso@mit.edu>
Wed, 4 Jul 2012 14:38:30 +0000 (10:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2012 19:04:12 +0000 (12:04 -0700)
commitebb6006e3be88bb15328887dec4a8c3b7c0138b6
treebbfd30df6f0ab627b5b9a5e1ffd6b91dbf83dbf3
parentaa88dea2270f685349ab7b92169600452fe73b62
random: use lockless techniques in the interrupt path

commit 902c098a3663de3fa18639efbb71b6080f0bcd3c upstream.

The real-time Linux folks don't like add_interrupt_randomness() taking
a spinlock since it is called in the low-level interrupt routine.
This also allows us to reduce the overhead in the fast path, for the
random driver, which is the interrupt collection path.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c