]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm/tlb: Unify flush_tlb_func_local() and flush_tlb_func_remote()
authorNadav Amit <namit@vmware.com>
Sat, 20 Feb 2021 23:17:05 +0000 (15:17 -0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:59:09 +0000 (12:59 +0100)
commit907c3a6a6b40e5637600999ca49044c5963df94d
tree912aa178359254826259c56b0ae291efa4ac3c45
parent5b1ecc59c48c230af1b1435726bff3fb691c9a3d
x86/mm/tlb: Unify flush_tlb_func_local() and flush_tlb_func_remote()

The unification of these two functions allows to use them in the updated
SMP infrastrucutre.

To do so, remove the reason argument from flush_tlb_func_local(), add
a member to struct tlb_flush_info that says which CPU initiated the
flush and act accordingly. Optimize the size of flush_tlb_info while we
are at it.

Unfortunately, this prevents us from using a constant tlb_flush_info for
arch_tlbbatch_flush(), but in a later stage we may be able to inline
tlb_flush_info into the IPI data, so it should not have an impact
eventually.

Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20210220231712.2475218-3-namit@vmware.com
arch/x86/include/asm/tlbflush.h
arch/x86/mm/tlb.c