]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - mm/highmem.c
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / mm / highmem.c
index 50b4ca6787f08e75037c81c853bfb5d22b1cbd36..77518a3b35a168524a0cfbf3dc96c082a651b26e 100644 (file)
 #include <linux/kgdb.h>
 #include <asm/tlbflush.h>
 
-
+#ifndef CONFIG_PREEMPT_RT_FULL
 #if defined(CONFIG_HIGHMEM) || defined(CONFIG_X86_32)
 DEFINE_PER_CPU(int, __kmap_atomic_idx);
 #endif
+#endif
 
 /*
  * Virtual_count is not a pure "count".
@@ -107,8 +108,9 @@ static inline wait_queue_head_t *get_pkmap_wait_queue_head(unsigned int color)
 unsigned long totalhigh_pages __read_mostly;
 EXPORT_SYMBOL(totalhigh_pages);
 
-
+#ifndef CONFIG_PREEMPT_RT_FULL
 EXPORT_PER_CPU_SYMBOL(__kmap_atomic_idx);
+#endif
 
 unsigned int nr_free_highpages (void)
 {