diff options
author | Vincent Chen <vincentc@andestech.com> | 2018-11-22 04:14:34 +0100 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2018-11-22 11:13:13 +0100 |
commit | e46bf83c1864a20f9dd17d597ec9be18ed05add8 (patch) | |
tree | b790f6d6935256140cb8e02d9a5dffd64ad74d14 /arch/nds32/kernel/sleep.S | |
parent | nds32: Remove duplicated include from pm.c (diff) | |
download | linux-e46bf83c1864a20f9dd17d597ec9be18ed05add8.tar.xz linux-e46bf83c1864a20f9dd17d597ec9be18ed05add8.zip |
nds32: nds32 FPU port
This patch set contains basic components for supporting the nds32 FPU,
such as exception handlers and context switch for FPU registers. By
default, the lazy FPU scheme is supported and the user can configure it via
CONFIG_LZAY_FPU.
Signed-off-by: Vincent Chen <vincentc@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32/kernel/sleep.S')
-rw-r--r-- | arch/nds32/kernel/sleep.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/nds32/kernel/sleep.S b/arch/nds32/kernel/sleep.S index 60c64bfbc901..ca4e61f3656f 100644 --- a/arch/nds32/kernel/sleep.S +++ b/arch/nds32/kernel/sleep.S @@ -36,7 +36,9 @@ suspend2ram: mfsr $r17, $ir14 mfsr $r18, $ir15 pushm $r0, $r19 - +#if defined(CONFIG_FPU) + jal store_fpu_for_suspend +#endif tlbop FlushAll isb |