From: Eric Dumazet <dada1@cosmosbay.com>
To: Matt Mackall <mpm@selenic.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] random : prefetch the whole pool, not 1/4 of it
Date: Fri, 29 Jul 2005 00:26:11 +0200 [thread overview]
Message-ID: <42E95B83.8070006@cosmosbay.com> (raw)
In-Reply-To: <20050407212058.GU3174@waste.org>
[-- Attachment #1: Type: text/plain, Size: 221 bytes --]
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>
[-- Attachment #2: patch.random --]
[-- Type: text/plain, Size: 375 bytes --]
--- 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;
next prev parent reply other threads:[~2005-07-28 22:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 21:20 [PATCH] update maintainer for /dev/random Matt Mackall
2005-07-28 22:26 ` Eric Dumazet [this message]
2005-07-28 22:31 ` [PATCH] random : prefetch the whole pool, not 1/4 of it Matt Mackall
2005-07-30 21:32 ` Folkert van Heusden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42E95B83.8070006@cosmosbay.com \
--to=dada1@cosmosbay.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox