x86/tlb: Move PCID helpers where they are used
authorThomas Gleixner <tglx@linutronix.de>
Tue, 21 Apr 2020 09:20:41 +0000 (11:20 +0200)
committerBorislav Petkov <bp@suse.de>
Sun, 26 Apr 2020 16:49:44 +0000 (18:49 +0200)
commit6c9b7d79a801074837c683fc996e231266ca47ae
tree353cf01b0ef43f3eb146b9024dee3371a4c480ae
parentaf5c40c6ee057c5354930abdc4d34be013d0e9e0
x86/tlb: Move PCID helpers where they are used

Aside of the fact that they are used only in the TLB code, especially
having the comment close to the actual implementation makes a lot of
sense.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200421092600.145772183@linutronix.de
arch/x86/include/asm/tlbflush.h
arch/x86/mm/tlb.c