x86/mm/kmmio: Use this_cpu_ptr() instead get_cpu_var() for kmmio_ctx
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 5 Feb 2020 14:34:26 +0000 (15:34 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 12 Mar 2020 15:41:40 +0000 (16:41 +0100)
commit6a9feaa8774f3b8210dfe40626a75ca047e4ecae
treee2b36f7bdd11baf79a534726936e45cced47f59a
parent681ff0181bbfb183e32bc6beb6ec076304470479
x86/mm/kmmio: Use this_cpu_ptr() instead get_cpu_var() for kmmio_ctx

Both call sites that access kmmio_ctx, access kmmio_ctx with interrupts
disabled. There is no need to use get_cpu_var() which additionally
disables preemption.

Use this_cpu_ptr() to access the kmmio_ctx variable of the current CPU.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200205143426.2592512-1-bigeasy@linutronix.de
arch/x86/mm/kmmio.c