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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 9 Aug 2012 23:24:42 +0000 (00:24 +0100)
commitf4fe3e0cc3eb906174269681102860f22ed76d51
treecd115b19b5681fa6caba5c196e46c15aaf548d8c
parent7069678424c5a5ab11938a274e2c03b1dd0b3302
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: Ben Hutchings <ben@decadent.org.uk>
drivers/char/random.c