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-05-14 18:38:44 (GMT)
commitde3080c24727d73647cc011c5c52cb8b3f09f53a (patch)
treead643948fc42c2e2612cb7cba81f95cfcf4deea9 /arch/arm/include
parentc7b07b44c2268f930bd11d537e3c9a4073a252ff (diff)
downloadlinux-fsl-qoriq-de3080c24727d73647cc011c5c52cb8b3f09f53a.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)