diff options
author | Ricardo Neri <ricardo.neri-calderon@linux.intel.com> | 2020-07-27 07:31:30 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-07-27 13:42:06 +0300 |
commit | 9998a9832c4027e907353e5e05fde730cf624b77 (patch) | |
tree | 44d0a0cfbc1eef3475859e8831c9ef5f72914b71 /drivers/misc/sgi-gru/grufault.c | |
parent | 85b23fbc7d88f8c6e3951721802d7845bc39663d (diff) | |
download | linux-9998a9832c4027e907353e5e05fde730cf624b77.tar.xz |
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
Diffstat (limited to 'drivers/misc/sgi-gru/grufault.c')
-rw-r--r-- | drivers/misc/sgi-gru/grufault.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c index b1521112dbbd..723825524ea0 100644 --- a/drivers/misc/sgi-gru/grufault.c +++ b/drivers/misc/sgi-gru/grufault.c @@ -20,6 +20,7 @@ #include <linux/io.h> #include <linux/uaccess.h> #include <linux/security.h> +#include <linux/sync_core.h> #include <linux/prefetch.h> #include "gru.h" #include "grutables.h" |