diff options
| author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-06-12 17:00:31 +0000 |
|---|---|---|
| committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-06-20 10:35:25 +0000 |
| commit | 2e10a6bd562768256f38078b84d95da30e1e2aa1 (patch) | |
| tree | cfe77e1acb93e8908fd8a8ae51c22c261c59378c | |
| parent | 53baadc2f6154d738f935a9dcc26648d2b3d89fd (diff) | |
linuxkpi: Add `pm_resume_via_firmware()`
This function is unimplemented, always return false.
While here, fix the return type of `pm_suspend_via_firmware()`: it
should be a boolean, not an integer.
The amdgpu DRM driver started to use `pm_resume_via_firmware()` in Linux
6.13.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57580
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/suspend.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/suspend.h b/sys/compat/linuxkpi/common/include/linux/suspend.h index 3a8bec392437..b5447a28aebb 100644 --- a/sys/compat/linuxkpi/common/include/linux/suspend.h +++ b/sys/compat/linuxkpi/common/include/linux/suspend.h @@ -27,10 +27,16 @@ extern suspend_state_t pm_suspend_target_state; #define PM_RESTORE_PREPARE 0x0005 #define PM_POST_RESTORE 0x0006 -static inline int +static inline bool pm_suspend_via_firmware(void) { - return (0); + return (false); +} + +static inline bool +pm_resume_via_firmware(void) +{ + return (false); } static inline int |
