diff options
author | Ricardo Neri <ricardo.neri-calderon@linux.intel.com> | 2020-07-26 21:31:31 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-07-27 12:42:06 +0200 |
commit | f69ca629d89d65737537e05308ac531f7bb07d5c (patch) | |
tree | 3757a5c0b49d8168e1ddd2d588c81a73024446e3 /arch/x86/include/asm/special_insns.h | |
parent | 9998a9832c4027e907353e5e05fde730cf624b77 (diff) | |
download | linux-f69ca629d89d65737537e05308ac531f7bb07d5c.tar.gz linux-f69ca629d89d65737537e05308ac531f7bb07d5c.tar.bz2 linux-f69ca629d89d65737537e05308ac531f7bb07d5c.zip |
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
Diffstat (limited to 'arch/x86/include/asm/special_insns.h')
-rw-r--r-- | arch/x86/include/asm/special_insns.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/special_insns.h b/arch/x86/include/asm/special_insns.h index eb8e781c4353..59a3e13204c3 100644 --- a/arch/x86/include/asm/special_insns.h +++ b/arch/x86/include/asm/special_insns.h @@ -234,7 +234,6 @@ static inline void clwb(volatile void *__p) #define nop() asm volatile ("nop") - #endif /* __KERNEL__ */ #endif /* _ASM_X86_SPECIAL_INSNS_H */ |