summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-02-20 19:00:00 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2023-02-20 19:00:00 -0800
commit238b05ec999a036872af52d23007a7fc5a2df74e (patch)
tree1708fed0a243aad7397319f879249b7771e16d1d /arch/x86
parent2e0ddb34e5a392ad6bd6a5ada38aac53a1cc0d1a (diff)
parentebd3ad60a688131de7df1dd05fd2d7c57f542268 (diff)
downloadlwn-238b05ec999a036872af52d23007a7fc5a2df74e.tar.gz
lwn-238b05ec999a036872af52d23007a7fc5a2df74e.zip
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
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/mm/tlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
index c1e31e9a85d7..92d73ccede70 100644
--- a/arch/x86/mm/tlb.c
+++ b/arch/x86/mm/tlb.c
@@ -1205,7 +1205,7 @@ void __flush_tlb_all(void)
*/
VM_WARN_ON_ONCE(preemptible());
- if (boot_cpu_has(X86_FEATURE_PGE)) {
+ if (cpu_feature_enabled(X86_FEATURE_PGE)) {
__flush_tlb_global();
} else {
/*