From: David Woodhouse <dwmw2@infradead.org>
To: "David S. Miller" <davem@redhat.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
linux-kernel@vger.kernel.org, matthew@wil.cx
Subject: Re: When should we use likely() / unlikely() / get_unaligned() ?
Date: Sun, 08 Feb 2004 23:14:30 +0000 [thread overview]
Message-ID: <1076282070.8563.5.camel@imladris.demon.co.uk> (raw)
In-Reply-To: <20040208151121.1e63a8f2.davem@redhat.com>
On Sun, 2004-02-08 at 15:11 -0800, David S. Miller wrote:
> That's right, for the old old ARMs they've always been broken
> with certain types of encapsulations due to this. Even just feed
> them certain kinds of odd TCP/IP option sequences and watch the
> packet handling work on corrupted header data on such older ARMs.
With the merge of uCLinux there are more machines like this too. I've
been playing with one recently where alignment exceptions are imprecise
:)
Adding a probability to get_unaligned() lets _all_ architectures set
their own optimal threshold for when to emit inline load/store code, and
when to take the exception.... and the ones which will set that
threshold at 0% become an arch-specific special case which you really
don't have to care about.
--
dwmw2
next prev parent reply other threads:[~2004-02-08 23:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 11:06 David Woodhouse
2004-02-08 10:43 ` Rusty Russell
2004-02-08 11:13 ` David Woodhouse
2004-02-08 23:00 ` Rusty Russell
2004-02-08 23:06 ` David Woodhouse
2004-02-08 23:11 ` David S. Miller
2004-02-08 23:14 ` David Woodhouse [this message]
2004-02-16 11:39 ` Pavel Machek
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=1076282070.8563.5.camel@imladris.demon.co.uk \
--to=dwmw2@infradead.org \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=rusty@rustcorp.com.au \
/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
all inboxes | Powered by JetHome®