| .. | .. |
|---|
| 29 | 29 | #include <linux/highmem.h> |
|---|
| 30 | 30 | #include <linux/kgdb.h> |
|---|
| 31 | 31 | #include <asm/tlbflush.h> |
|---|
| 32 | +#include <linux/vmalloc.h> |
|---|
| 32 | 33 | |
|---|
| 33 | | -#ifndef CONFIG_PREEMPT_RT_FULL |
|---|
| 34 | 34 | #if defined(CONFIG_HIGHMEM) || defined(CONFIG_X86_32) |
|---|
| 35 | 35 | DEFINE_PER_CPU(int, __kmap_atomic_idx); |
|---|
| 36 | | -#endif |
|---|
| 37 | 36 | #endif |
|---|
| 38 | 37 | |
|---|
| 39 | 38 | /* |
|---|
| .. | .. |
|---|
| 106 | 105 | } |
|---|
| 107 | 106 | #endif |
|---|
| 108 | 107 | |
|---|
| 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); |
|---|
| 111 | 110 | |
|---|
| 112 | | -#ifndef CONFIG_PREEMPT_RT_FULL |
|---|
| 113 | 111 | EXPORT_PER_CPU_SYMBOL(__kmap_atomic_idx); |
|---|
| 114 | | -#endif |
|---|
| 115 | 112 | |
|---|
| 116 | 113 | unsigned int nr_free_highpages (void) |
|---|
| 117 | 114 | { |
|---|
| .. | .. |
|---|
| 372 | 369 | } |
|---|
| 373 | 370 | |
|---|
| 374 | 371 | EXPORT_SYMBOL(kunmap_high); |
|---|
| 375 | | -#endif |
|---|
| 372 | +#endif /* CONFIG_HIGHMEM */ |
|---|
| 376 | 373 | |
|---|
| 377 | 374 | #if defined(HASHED_PAGE_VIRTUAL) |
|---|
| 378 | 375 | |
|---|
| .. | .. |
|---|
| 484 | 481 | } |
|---|
| 485 | 482 | } |
|---|
| 486 | 483 | |
|---|
| 487 | | -#endif /* defined(CONFIG_HIGHMEM) && !defined(WANT_PAGE_VIRTUAL) */ |
|---|
| 484 | +#endif /* defined(HASHED_PAGE_VIRTUAL) */ |
|---|