arm64: add support for kernel mode NEON in interrupt context
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 24 Feb 2014 14:26:29 +0000 (15:26 +0100)
committerJP Abgrall <jpa@google.com>
Thu, 28 Aug 2014 17:22:27 +0000 (10:22 -0700)
commit9ed72656162f38017af94acf2e986fdb04fecd05
treec6e5f6668d27b9acf2457e4b14ab362c17be3a4d
parent74780f86ec6464edee0a87309da342f6237a6138
arm64: add support for kernel mode NEON in interrupt context

This patch modifies kernel_neon_begin() and kernel_neon_end(), so
they may be called from any context. To address the case where only
a couple of registers are needed, kernel_neon_begin_partial(u32) is
introduced which takes as a parameter the number of bottom 'n' NEON
q-registers required. To mark the end of such a partial section, the
regular kernel_neon_end() should be used.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Conflicts:
arch/arm64/include/asm/neon.h

Change-Id: Ifc7c6aa77e2ab8dd98bb9975cccab54e09693ab7
arch/arm64/include/asm/fpsimd.h
arch/arm64/include/asm/fpsimdmacros.h
arch/arm64/include/asm/neon.h [new file with mode: 0644]
arch/arm64/kernel/entry-fpsimd.S
arch/arm64/kernel/fpsimd.c