summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/amd
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-04-13 10:41:42 +0200
committerIngo Molnar <mingo@kernel.org>2025-04-14 09:34:17 +0200
commitd96c78684166bc0e7997d12d845882cb5824eed3 (patch)
tree971dae3c7b1956aed9f8c522747a03647bbe4256 /arch/x86/include/asm/amd
parentbcbb65559532891148d990527e9df6b8fc98e98d (diff)
x86/platform/amd: Move the <asm/amd_hsmp.h> header to <asm/amd/hsmp.h>
Collect AMD specific platform header files in <asm/amd/*.h>. Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Cc: Carlos Bilbao <carlos.bilbao@kernel.org> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mario Limonciello <superm1@kernel.org> Cc: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com> Link: https://lore.kernel.org/r/20250413084144.3746608-5-mingo@kernel.org
Diffstat (limited to 'arch/x86/include/asm/amd')
-rw-r--r--arch/x86/include/asm/amd/hsmp.h16
1 files changed, 16 insertions, 0 deletions
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 <uapi/asm/amd_hsmp.h>
+
+#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_*/