]> git.baikalelectronics.ru Git - kernel.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)
commita3f289ed553d9bcc4961323e1b9ac9e48c8811eb
treedb98561e96864f4bbe220a4c45e76d233f5bab76
parent6b80f9f53ffa27920d60d900aec7a00bf1a56b7a
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