From: ard.biesheuvel@linaro.org (Ard Biesheuvel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: add appropriate asm/unaligned.h
Date: Thu, 27 Mar 2014 15:20:17 +0100 [thread overview]
Message-ID: <CAKv+Gu9H1OpyMuRORaOfCDmZjj792PgZRSG+X4rdDOveT9jeug@mail.gmail.com> (raw)
In-Reply-To: <CAL_JsqLyZG+z+SNy+++pJ15WeWbTFgDRTfOE9j66wE9kX0F9-g@mail.gmail.com>
On 27 March 2014 15:15, Rob Herring <robherring2@gmail.com> wrote:
> On Thu, Mar 27, 2014 at 8:39 AM, Ard Biesheuvel
> <ard.biesheuvel@linaro.org> wrote:
>> The generic asm/unaligned.h does not allow unaligned accesses, resulting in all
>> invocations of get_unaligned_xxx() and put_unaligned_xxx() to be expanded into
>> byte size accesses. On arm64, this is unnecessary, so provide a more permissive
>> asm/unaligned.h instead.
>
> Couldn't the generic version learn to use
> CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS on arches that enable it?
>
I wasn't aware of that option, but I agree that it seems reasonable to
test for that in the asm-generic version.
--
Ard.
prev parent reply other threads:[~2014-03-27 14:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 13:39 [PATCH] arm64: add appropriate asm/unaligned.h Ard Biesheuvel
2014-03-27 14:15 ` Rob Herring
2014-03-27 14:20 ` Ard Biesheuvel [this message]
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=CAKv+Gu9H1OpyMuRORaOfCDmZjj792PgZRSG+X4rdDOveT9jeug@mail.gmail.com \
--to=ard.biesheuvel@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).