aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/switch_to.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-04-03 15:28:42 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-03 15:28:42 -0700
commit5364abc57993b3bf60c41923cb98a8f1a594e749 (patch)
treef5ba0ea02e99872196cba7f3a646649e0ad09a1b /arch/arc/include/asm/switch_to.h
parentMerge tag 'arm-dt-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc (diff)
parentARC: allow userspace DSP applications to use AGU extensions (diff)
downloadlinux-dev-5364abc57993b3bf60c41923cb98a8f1a594e749.tar.xz
linux-dev-5364abc57993b3bf60c41923cb98a8f1a594e749.zip
Merge tag 'arc-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
Pull ARC updates from Vineet Gupta: - Support for DSP enabled userspace (save/restore regs) - Misc other platform fixes * tag 'arc-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc: ARC: allow userspace DSP applications to use AGU extensions ARC: add support for DSP-enabled userspace applications ARC: handle DSP presence in HW ARC: add helpers to sanitize config options ARC: [plat-axs10x]: PGU: remove unused encoder-slave property
Diffstat (limited to 'arch/arc/include/asm/switch_to.h')
-rw-r--r--arch/arc/include/asm/switch_to.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arc/include/asm/switch_to.h b/arch/arc/include/asm/switch_to.h
index aadf65b2b56c..4a3d67989d19 100644
--- a/arch/arc/include/asm/switch_to.h
+++ b/arch/arc/include/asm/switch_to.h
@@ -9,6 +9,7 @@
#ifndef __ASSEMBLY__
#include <linux/sched.h>
+#include <asm/dsp-impl.h>
#include <asm/fpu.h>
#ifdef CONFIG_ARC_PLAT_EZNPS
@@ -24,6 +25,7 @@ struct task_struct *__switch_to(struct task_struct *p, struct task_struct *n);
#define switch_to(prev, next, last) \
do { \
ARC_EZNPS_DP_PREV(prev, next); \
+ dsp_save_restore(prev, next); \
fpu_save_restore(prev, next); \
last = __switch_to(prev, next);\
mb(); \