From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- kernel/arch/x86/include/asm/highmem.h | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/kernel/arch/x86/include/asm/highmem.h b/kernel/arch/x86/include/asm/highmem.h index 032e020..0f420b2 100644 --- a/kernel/arch/x86/include/asm/highmem.h +++ b/kernel/arch/x86/include/asm/highmem.h @@ -23,6 +23,7 @@ #include <linux/interrupt.h> #include <linux/threads.h> +#include <asm/kmap_types.h> #include <asm/tlbflush.h> #include <asm/paravirt.h> #include <asm/fixmap.h> @@ -57,16 +58,10 @@ #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT) #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT)) +void *kmap_atomic_pfn(unsigned long pfn); +void *kmap_atomic_prot_pfn(unsigned long pfn, pgprot_t prot); + #define flush_cache_kmaps() do { } while (0) - -#define arch_kmap_local_post_map(vaddr, pteval) \ - arch_flush_lazy_mmu_mode() - -#define arch_kmap_local_post_unmap(vaddr) \ - do { \ - flush_tlb_one_kernel((vaddr)); \ - arch_flush_lazy_mmu_mode(); \ - } while (0) extern void add_highpages_with_active_regions(int nid, unsigned long start_pfn, unsigned long end_pfn); -- Gitblit v1.6.2