]> git.itanic.dy.fi Git - linux-stable/commit
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 14:52:47 +0000 (07:52 -0700)
commit5850d859a076ed117ad3c3c3f4efef03fb034168
tree672821ce5cc700f56a46acd6a984cc9c6a8f003a
parent3041b916a8c4b444b275c7df8a5a03eb61a007bb
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