From d96c78684166bc0e7997d12d845882cb5824eed3 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Sun, 13 Apr 2025 10:41:42 +0200 Subject: x86/platform/amd: Move the header to Collect AMD specific platform header files in . Signed-off-by: Ingo Molnar Acked-by: Borislav Petkov (AMD) Cc: Carlos Bilbao Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Mario Limonciello Cc: Naveen Krishna Chatradhi Link: https://lore.kernel.org/r/20250413084144.3746608-5-mingo@kernel.org --- arch/x86/include/asm/amd/hsmp.h | 16 ++++++++++++++++ arch/x86/include/asm/amd_hsmp.h | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 arch/x86/include/asm/amd/hsmp.h delete mode 100644 arch/x86/include/asm/amd_hsmp.h (limited to 'arch/x86/include') diff --git a/arch/x86/include/asm/amd/hsmp.h b/arch/x86/include/asm/amd/hsmp.h new file mode 100644 index 000000000000..03c2ce3edaf5 --- /dev/null +++ b/arch/x86/include/asm/amd/hsmp.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ + +#ifndef _ASM_X86_AMD_HSMP_H_ +#define _ASM_X86_AMD_HSMP_H_ + +#include + +#if IS_ENABLED(CONFIG_AMD_HSMP) +int hsmp_send_message(struct hsmp_message *msg); +#else +static inline int hsmp_send_message(struct hsmp_message *msg) +{ + return -ENODEV; +} +#endif +#endif /*_ASM_X86_AMD_HSMP_H_*/ diff --git a/arch/x86/include/asm/amd_hsmp.h b/arch/x86/include/asm/amd_hsmp.h deleted file mode 100644 index 03c2ce3edaf5..000000000000 --- a/arch/x86/include/asm/amd_hsmp.h +++ /dev/null @@ -1,16 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ - -#ifndef _ASM_X86_AMD_HSMP_H_ -#define _ASM_X86_AMD_HSMP_H_ - -#include - -#if IS_ENABLED(CONFIG_AMD_HSMP) -int hsmp_send_message(struct hsmp_message *msg); -#else -static inline int hsmp_send_message(struct hsmp_message *msg) -{ - return -ENODEV; -} -#endif -#endif /*_ASM_X86_AMD_HSMP_H_*/ -- cgit v1.2.3