linux-stable/arch
Arnd Bergmann 94528b7078 sh: remove unaligned access for sh4a
Unlike every other architecture, sh4a uses an inline asm implementation
for get_unaligned(). I have shown that this produces better object
code than the asm-generic version. However, there are very few users of
arch/sh/ overall, and most of those seem to use sh4 rather than sh4a CPU
cores, so it seems not worth keeping the complexity in the architecture
independent code.

Change over to the generic version to allow simplifying that in a
follow-up patch.

If there are sh4a users that want the best performance, it would probably
be best to add support for the movua instruction in gcc itself, as this
would not just help get_unaligned() callers but any code that accesses
a __packed variable in user space or kernel.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2021-05-10 17:50:47 +02:00
..
alpha asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
arc mm: drop redundant HAVE_ARCH_TRANSPARENT_HUGEPAGE 2021-05-05 11:27:25 -07:00
arm Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
arm64 Assorted arm64 fixes and clean-ups, the most important: 2021-05-07 12:11:05 -07:00
csky arch/csky patches for 5.13-rc1 2021-05-03 12:58:31 -07:00
h8300 arch: rearrange headers inclusion order in asm/bitops for m68k, sh and h8300 2021-05-06 19:24:11 -07:00
hexagon Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
ia64 asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
m68k asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
microblaze asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
mips Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
nds32 tracing updates for 5.13 2021-05-03 11:19:54 -07:00
nios2 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2021-05-02 09:14:01 -07:00
openrisc openrisc: always use unaligned-struct header 2021-05-10 17:50:04 +02:00
parisc asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
powerpc Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
riscv riscv: remove unused handle_exception symbol 2021-05-06 09:40:16 -07:00
s390 Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
sh sh: remove unaligned access for sh4a 2021-05-10 17:50:47 +02:00
sparc asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
um Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
x86 asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
xtensa asm-generic: use asm-generic/unaligned.h for most architectures 2021-05-10 17:43:15 +02:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Add Landlock, a new LSM from Mickaël Salaün <mic@linux.microsoft.com> 2021-05-01 18:50:44 -07:00