diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-11-03 10:27:24 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-11-06 23:14:56 +0100 |
commit | 7ac1b26b0a7288fc8f87aa8978891375f23740b2 (patch) | |
tree | 1f85882fa6bba6456fed0c8bdbbba2c7fd02ae91 /arch/microblaze/include/asm/highmem.h | |
parent | 5af627a043e39d3226eecd75753dcd2c920c16ec (diff) |
microblaze/mm/highmem: Switch to generic kmap atomic
No reason having the same code in every architecture.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20201103095857.777445435@linutronix.de
Diffstat (limited to 'arch/microblaze/include/asm/highmem.h')
-rw-r--r-- | arch/microblaze/include/asm/highmem.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/highmem.h b/arch/microblaze/include/asm/highmem.h index 284ca8fb54c1..4418633fb163 100644 --- a/arch/microblaze/include/asm/highmem.h +++ b/arch/microblaze/include/asm/highmem.h @@ -25,7 +25,6 @@ #include <linux/uaccess.h> #include <asm/fixmap.h> -extern pte_t *kmap_pte; extern pte_t *pkmap_page_table; /* @@ -52,6 +51,11 @@ extern pte_t *pkmap_page_table; #define flush_cache_kmaps() { flush_icache(); flush_dcache(); } +#define arch_kmap_local_post_map(vaddr, pteval) \ + local_flush_tlb_page(NULL, vaddr); +#define arch_kmap_local_post_unmap(vaddr) \ + local_flush_tlb_page(NULL, vaddr); + #endif /* __KERNEL__ */ #endif /* _ASM_HIGHMEM_H */ |