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)
committerMark Brown <broonie@linaro.org>
Thu, 19 Jun 2014 11:34:28 +0000 (12:34 +0100)
commit92732accb6c99d8a0ae32897f04e0711962c40cc
treef97b09f812b9477f38e671fd7de9a154b4b8acf5
parent8ec3883b5accf54406952962e09fd5db0fae8ecc
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>
(cherry picked from commit 190f1ca85d071114930dd7abe6b5d103e9d5572f)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/fpsimd.h
arch/arm64/include/asm/fpsimdmacros.h
arch/arm64/include/asm/neon.h
arch/arm64/kernel/entry-fpsimd.S
arch/arm64/kernel/fpsimd.c