]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpu: Refactor sync_core() for readability
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Mon, 27 Jul 2020 04:31:31 +0000 (21:31 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 27 Jul 2020 10:42:06 +0000 (12:42 +0200)
commit2b7d819e0b4ff4bc0929fa33e95d6f09b73d4a20
tree3757a5c0b49d8168e1ddd2d588c81a73024446e3
parentfbdd35ab8d35b656dcb2205e1e7e65a94392a4ae
x86/cpu: Refactor sync_core() for readability

Instead of having #ifdef/#endif blocks inside sync_core() for X86_64 and
X86_32, implement the new function iret_to_self() with two versions.

In this manner, avoid having to use even more more #ifdef/#endif blocks
when adding support for SERIALIZE in sync_core().

Co-developed-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200727043132.15082-4-ricardo.neri-calderon@linux.intel.com
arch/x86/include/asm/special_insns.h
arch/x86/include/asm/sync_core.h