diff options
| author | John Allen <[email protected]> | 2024-07-30 15:17:30 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2024-08-01 14:23:39 +0200 |
| commit | f0fcdd2cb0db62605d85f3b97a1b443e7c91f886 (patch) | |
| tree | 594bfd126222533905e34d41004019eec46bccf7 /include/linux | |
| parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) | |
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 <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Yazen Ghannam <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/prmt.h | 5 |
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 |