x86/mce: relocate set{clear}_mce_nospec() functions
authorJane Chu <jane.chu@oracle.com>
Mon, 16 May 2022 18:21:46 +0000 (11:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:07 +0000 (10:26 +0200)
commit4cc01f4d3ac17cbba3d76bba343407d18f0c42e5
tree20ae451c82f4f9700bb1a6fb5c5b8fcb6579d973
parentf50d99c5396fa376972227c75737f29cd8a84c04
x86/mce: relocate set{clear}_mce_nospec() functions

[ Upstream commit b3fdf9398a16f01dc013967a4ab25e99c3f4fc12 ]

Relocate the twin mce functions to arch/x86/mm/pat/set_memory.c
file where they belong.

While at it, fixup a function name in a comment.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jane Chu <jane.chu@oracle.com>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
[sfr: gate {set,clear}_mce_nospec() by CONFIG_X86_64]
Link: https://lore.kernel.org/r/165272527328.90175.8336008202048685278.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/set_memory.h
arch/x86/mm/pat/set_memory.c
include/linux/set_memory.h