diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-04-18 02:53:58 +0300 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2015-05-21 01:07:00 +0300 |
commit | 7d7d7a413c5b8dddfde56dce1dd42e2199033c6c (patch) | |
tree | d0cec5573426b6bdde46df0eb850a8e487e09096 /arch/arm/include/asm/vfp.h | |
parent | e7f0f376490f754baf49976002b32c4daaaf323a (diff) | |
download | linux-7d7d7a413c5b8dddfde56dce1dd42e2199033c6c.tar.xz |
ARM: vfp: Add vfp_disable for problematic platforms
Some platforms might not be able to fully utilize VFP when e.g: one CPU
out of two in a SMP complex lacks a VFP unit. Adding code to migrate
task to the CPU which has a VFP unit would be cumbersome and not
performant, instead, just add the ability to disable VFP.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'arch/arm/include/asm/vfp.h')
-rw-r--r-- | arch/arm/include/asm/vfp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/vfp.h b/arch/arm/include/asm/vfp.h index 03f9ca3cdfa4..22e414056a8c 100644 --- a/arch/arm/include/asm/vfp.h +++ b/arch/arm/include/asm/vfp.h @@ -91,4 +91,8 @@ #define VFPOPDESC_UNUSED_MASK (0xFF << VFPOPDESC_UNUSED_BIT) #define VFPOPDESC_OPDESC_MASK (~(VFPOPDESC_LENGTH_MASK | VFPOPDESC_UNUSED_MASK)) +#ifndef __ASSEMBLY__ +void vfp_disable(void); +#endif + #endif /* __ASM_VFP_H */ |