lkml.org 
[lkml]   [2005]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;
\
 
 \ /
  Last update: 2005-07-29 00:35    [W:0.159 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site