mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
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]
13 lines
317 B
C
13 lines
317 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#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
|