summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Allen <john.allen@amd.com>2024-07-30 18:17:30 +0300
committerBorislav Petkov (AMD) <bp@alien8.de>2024-08-01 15:23:39 +0300
commitf0fcdd2cb0db62605d85f3b97a1b443e7c91f886 (patch)
tree594bfd126222533905e34d41004019eec46bccf7 /include
parent8400291e289ee6b2bf9779ff1c83a291501f017b (diff)
downloadlinux-f0fcdd2cb0db62605d85f3b97a1b443e7c91f886.tar.xz
ACPI: PRM: Add PRM handler direct call support
Platform Runtime Mechanism (PRM) handlers can be invoked from either the AML interpreter or directly by an OS driver. Implement the latter. [ bp: Massage commit message. ] Signed-off-by: John Allen <john.allen@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lore.kernel.org/r/20240730151731.15363-2-john.allen@amd.com
Diffstat (limited to 'include')
-rw-r--r--include/linux/prmt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/prmt.h b/include/linux/prmt.h
index 24da8364b919..9c094294403f 100644
--- a/include/linux/prmt.h
+++ b/include/linux/prmt.h
@@ -2,6 +2,11 @@
#ifdef CONFIG_ACPI_PRMT
void init_prmt(void);
+int acpi_call_prm_handler(guid_t handler_guid, void *param_buffer);
#else
static inline void init_prmt(void) { }
+static inline int acpi_call_prm_handler(guid_t handler_guid, void *param_buffer)
+{
+ return -EOPNOTSUPP;
+}
#endif