diff options
author | Peter Zijlstra <peterz@infradead.org> | 2018-12-03 20:03:49 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-12-17 20:54:26 +0300 |
commit | 935f5839827ef54b53406e80906f7c355eb73c1b (patch) | |
tree | 7ec68e734244764f504c5f42246185107b9d0e64 /arch/x86/mm/mm_internal.h | |
parent | 5fe26b7a8f4693d532c7a3c3632e47e7d7016238 (diff) | |
download | linux-935f5839827ef54b53406e80906f7c355eb73c1b.tar.xz |
x86/mm/cpa: Optimize cpa_flush_array() TLB invalidation
Instead of punting and doing tlb_flush_all(), do the same as
flush_tlb_kernel_range() does and use single page invalidations.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom.StDenis@amd.com
Cc: dave.hansen@intel.com
Link: http://lkml.kernel.org/r/20181203171043.430001980@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/mm_internal.h')
-rw-r--r-- | arch/x86/mm/mm_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/mm/mm_internal.h b/arch/x86/mm/mm_internal.h index 4e1f6e1b8159..319bde386d5f 100644 --- a/arch/x86/mm/mm_internal.h +++ b/arch/x86/mm/mm_internal.h @@ -19,4 +19,6 @@ extern int after_bootmem; void update_cache_mode_entry(unsigned entry, enum page_cache_mode cache); +extern unsigned long tlb_single_page_flush_ceiling; + #endif /* __X86_MM_INTERNAL_H */ |