]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
committerDan Williams <dan.j.williams@intel.com>
Mon, 16 May 2022 18:46:44 +0000 (11:46 -0700)
commitb3fdf9398a16f01dc013967a4ab25e99c3f4fc12
treedb98561e96864f4bbe220a4c45e76d233f5bab76
parent7917f9cdb5032ac065ac6a5415f5722f215b2608
x86/mce: relocate set{clear}_mce_nospec() functions

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>
arch/x86/include/asm/set_memory.h
arch/x86/mm/pat/set_memory.c
include/linux/set_memory.h