hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm/include/asm/switch_to.h
....@@ -4,6 +4,13 @@
44
55 #include <linux/thread_info.h>
66
7
+#if defined CONFIG_PREEMPT_RT_FULL && defined CONFIG_HIGHMEM
8
+void switch_kmaps(struct task_struct *prev_p, struct task_struct *next_p);
9
+#else
10
+static inline void
11
+switch_kmaps(struct task_struct *prev_p, struct task_struct *next_p) { }
12
+#endif
13
+
714 /*
815 * For v7 SMP cores running a preemptible kernel we may be pre-empted
916 * during a TLB maintenance operation, so execute an inner-shareable dsb
....@@ -26,6 +33,7 @@
2633 #define switch_to(prev,next,last) \
2734 do { \
2835 __complete_pending_tlbi(); \
36
+ switch_kmaps(prev, next); \
2937 last = __switch_to(prev,task_thread_info(prev), task_thread_info(next)); \
3038 } while (0)
3139