Messages in this thread Patch in this message | | | Date | Fri, 29 Jul 2005 00:26:11 +0200 | From | Eric Dumazet <> | Subject | [PATCH] random : prefetch the whole pool, not 1/4 of it |
| |
Hi Matt
Could you check this patch and apply it ?
Thank you
Eric
[RANDOM] : prefetch the whole pool, not 1/4 of it, (pool contains u32 words, not bytes)
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
--- linux-2.6.13-rc3/drivers/char/random.c 2005-07-13 06:46:46.000000000 +0200 +++ linux-2.6.13-rc3-ed/drivers/char/random.c 2005-07-29 00:11:24.000000000 +0200 @@ -469,7 +469,7 @@ next_w = *in++; spin_lock_irqsave(&r->lock, flags); - prefetch_range(r->pool, wordmask); + prefetch_range(r->pool, wordmask*4); input_rotate = r->input_rotate; add_ptr = r->add_ptr; | |