diff options
| author | Ard Biesheuvel <[email protected]> | 2013-05-16 09:41:48 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <[email protected]> | 2013-07-08 21:08:51 +0000 |
| commit | 73c132c15da504789b924871e2491479a18e4f6a (patch) | |
| tree | e5aab4cb0d9263419677a4aa9aea392ffad76053 /lib/raid6/algos.c | |
| parent | ARM: be strict about FP exceptions in kernel mode (diff) | |
| download | kernel-73c132c15da504789b924871e2491479a18e4f6a.tar.gz kernel-73c132c15da504789b924871e2491479a18e4f6a.zip | |
ARM: add support for kernel mode NEON
In order to safely support the use of NEON instructions in
kernel mode, some precautions need to be taken:
- the userland context that may be present in the registers (even
if the NEON/VFP is currently disabled) must be stored under the
correct task (which may not be 'current' in the UP case),
- to avoid having to keep track of additional vfpstates for the
kernel side, disallow the use of NEON in interrupt context
and run with preemption disabled,
- after use, re-enable preemption and re-enable the lazy restore
machinery by disabling the NEON/VFP unit.
This patch adds the functions kernel_neon_begin() and
kernel_neon_end() which take care of the above. It also adds
the Kconfig symbol KERNEL_MODE_NEON to enable it.
Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
0 files changed, 0 insertions, 0 deletions
