[PATCH] arm64: add appropriate asm/unaligned.h

Ard Biesheuvel ard.biesheuvel at linaro.org
Thu Mar 27 10:20:17 EDT 2014


On 27 March 2014 15:15, Rob Herring <robherring2 at gmail.com> wrote:
> On Thu, Mar 27, 2014 at 8:39 AM, Ard Biesheuvel
> <ard.biesheuvel at 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.



More information about the linux-arm-kernel mailing list