random: remove some prefetch logic
authorMatt Mackall <mpm@selenic.com>
Tue, 29 Apr 2008 08:03:03 +0000 (01:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:25 +0000 (08:06 -0700)
commit6d38b827400d7c02bce391f90d044e4c57d5bc1e
tree826f378b9654d4e5b56d7e372c5d2d5eafd09c2f
parentfeee76972bcc54b2b1d1dc28bc6c16a8daa9aff8
random: remove some prefetch logic

The urandom output pool (ie the fast path) fits in one cacheline, so
this is pretty unnecessary. Further, the output path has already
fetched the entire pool to hash it before calling in here.

(This was the only user of prefetch_range in the kernel, and it passed
in words rather than bytes!)

Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/random.c