diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2020-02-05 14:34:26 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2020-03-12 15:41:40 +0000 |
| commit | 6a9feaa8774f3b8210dfe40626a75ca047e4ecae (patch) | |
| tree | e2b36f7bdd11baf79a534726936e45cced47f59a /tools/perf/scripts/python/sctop.py | |
| parent | x86/mm/init/32: Stop printing the virtual memory layout (diff) | |
| download | kernel-6a9feaa8774f3b8210dfe40626a75ca047e4ecae.tar.gz kernel-6a9feaa8774f3b8210dfe40626a75ca047e4ecae.zip | |
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 <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
