]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77db9f8c0b7435c7839b29d13fd0fbce2b9622a6
tree826f378b9654d4e5b56d7e372c5d2d5eafd09c2f
parentc209fc63f295fdbbc8ff6c83b36a05bc7316aead
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