x86/cpu: Relocate sync_core() to sync_core.h
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Mon, 27 Jul 2020 04:31:30 +0000 (21:31 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 27 Jul 2020 10:42:06 +0000 (12:42 +0200)
commit9998a9832c4027e907353e5e05fde730cf624b77
tree44d0a0cfbc1eef3475859e8831c9ef5f72914b71
parent85b23fbc7d88f8c6e3951721802d7845bc39663d
x86/cpu: Relocate sync_core() to sync_core.h

Having sync_core() in processor.h is problematic since it is not possible
to check for hardware capabilities via the *cpu_has() family of macros.
The latter needs the definitions in processor.h.

It also looks more intuitive to relocate the function to sync_core.h.

This changeset does not make changes in functionality.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20200727043132.15082-3-ricardo.neri-calderon@linux.intel.com
arch/x86/include/asm/processor.h
arch/x86/include/asm/sync_core.h
arch/x86/kernel/alternative.c
arch/x86/kernel/cpu/mce/core.c
drivers/misc/sgi-gru/grufault.c
drivers/misc/sgi-gru/gruhandles.c
drivers/misc/sgi-gru/grukservices.c