hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/mm/highmem.c
....@@ -29,11 +29,10 @@
2929 #include <linux/highmem.h>
3030 #include <linux/kgdb.h>
3131 #include <asm/tlbflush.h>
32
+#include <linux/vmalloc.h>
3233
33
-#ifndef CONFIG_PREEMPT_RT_FULL
3434 #if defined(CONFIG_HIGHMEM) || defined(CONFIG_X86_32)
3535 DEFINE_PER_CPU(int, __kmap_atomic_idx);
36
-#endif
3736 #endif
3837
3938 /*
....@@ -106,12 +105,10 @@
106105 }
107106 #endif
108107
109
-unsigned long totalhigh_pages __read_mostly;
110
-EXPORT_SYMBOL(totalhigh_pages);
108
+atomic_long_t _totalhigh_pages __read_mostly;
109
+EXPORT_SYMBOL(_totalhigh_pages);
111110
112
-#ifndef CONFIG_PREEMPT_RT_FULL
113111 EXPORT_PER_CPU_SYMBOL(__kmap_atomic_idx);
114
-#endif
115112
116113 unsigned int nr_free_highpages (void)
117114 {
....@@ -372,7 +369,7 @@
372369 }
373370
374371 EXPORT_SYMBOL(kunmap_high);
375
-#endif
372
+#endif /* CONFIG_HIGHMEM */
376373
377374 #if defined(HASHED_PAGE_VIRTUAL)
378375
....@@ -484,4 +481,4 @@
484481 }
485482 }
486483
487
-#endif /* defined(CONFIG_HIGHMEM) && !defined(WANT_PAGE_VIRTUAL) */
484
+#endif /* defined(HASHED_PAGE_VIRTUAL) */