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)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 15 Jul 2012 00:17:43 +0000 (20:17 -0400)
commit902c098a3663de3fa18639efbb71b6080f0bcd3c
treee2f984d5903236d4d593e457fd1279fd24177af2
parent775f4b297b780601e61787b766f306ed3e1d23eb
random: use lockless techniques in the interrupt path

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>
Cc: stable@vger.kernel.org
drivers/char/random.c