]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/mm/tlb: Make enter_lazy_tlb() always inline on x86
authorXie Yuanbin <qq570070308@gmail.com>
Mon, 16 Feb 2026 16:49:48 +0000 (00:49 +0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Mar 2026 05:21:27 +0000 (06:21 +0100)
commit4b9ef32c57a68eb98c45835c2beaa77f8e51c5c4
tree2cccce37305f61b388233ff6c68002cce1d58a4d
parent12f8069115d5ff9d292c6b00c74e1984b01b6fc1
x86/mm/tlb: Make enter_lazy_tlb() always inline on x86

enter_lazy_tlb() on x86 is short enough, and is called in context
switching, which is the hot code path.

Make enter_lazy_tlb() always inline on x86 to optimize performance.

Suggested-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Xie Yuanbin <qq570070308@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/20260216164950.147617-2-qq570070308@gmail.com
arch/x86/include/asm/mmu_context.h
arch/x86/include/asm/tlbflush.h
arch/x86/mm/tlb.c