summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2013-02-13 10:03:11 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:19:55 (GMT)
commit7e0509fe7647c827b37ee4034b80c3d8b399830c (patch)
treebd6dd28fbb3f5dad2d744fffc4b8bab7f71b6b5f /arch/arm/include
parentdad3e3263a3b3978630c1703e6dbd0c41ad07bc1 (diff)
downloadlinux-fsl-qoriq-7e0509fe7647c827b37ee4034b80c3d8b399830c.tar.xz
arm-enable-highmem-for-rt.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/switch_to.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/switch_to.h b/arch/arm/include/asm/switch_to.h
index c99e259..f3e3d80 100644
--- a/arch/arm/include/asm/switch_to.h
+++ b/arch/arm/include/asm/switch_to.h
@@ -3,6 +3,13 @@
#include <linux/thread_info.h>
+#if defined CONFIG_PREEMPT_RT_FULL && defined CONFIG_HIGHMEM
+void switch_kmaps(struct task_struct *prev_p, struct task_struct *next_p);
+#else
+static inline void
+switch_kmaps(struct task_struct *prev_p, struct task_struct *next_p) { }
+#endif
+
/*
* For v7 SMP cores running a preemptible kernel we may be pre-empted
* during a TLB maintenance operation, so execute an inner-shareable dsb
@@ -22,6 +29,7 @@ extern struct task_struct *__switch_to(struct task_struct *, struct thread_info
#define switch_to(prev,next,last) \
do { \
+ switch_kmaps(prev, next); \
last = __switch_to(prev,task_thread_info(prev), task_thread_info(next)); \
} while (0)