Commit 238b05ec authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'x86-mm-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 mm update from Ingo Molnar:
 "Micro-optimize __flush_tlb_all()"

* tag 'x86-mm-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/cpu: Use cpu_feature_enabled() when checking global pages support
parents 2e0ddb34 ebd3ad60
...@@ -1205,7 +1205,7 @@ void __flush_tlb_all(void) ...@@ -1205,7 +1205,7 @@ void __flush_tlb_all(void)
*/ */
VM_WARN_ON_ONCE(preemptible()); VM_WARN_ON_ONCE(preemptible());
if (boot_cpu_has(X86_FEATURE_PGE)) { if (cpu_feature_enabled(X86_FEATURE_PGE)) {
__flush_tlb_global(); __flush_tlb_global();
} else { } else {
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment