git: 81e5b344273c - stable/13 - linuxkpi: Add more suspend defines
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Feb 2023 08:22:06 UTC
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=81e5b344273ca11808b4e694d684fd0c09a6a5f7 commit 81e5b344273ca11808b4e694d684fd0c09a6a5f7 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2023-02-17 13:49:52 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2023-02-21 08:21:04 +0000 linuxkpi: Add more suspend defines Needed by drm 5.15-lts Sponsored by: Beckhoff Automation GmbH & Co. KG (cherry picked from commit a0fdaf9a7b34b6f8fdab747f7a198158e66b57ab) --- sys/compat/linuxkpi/common/include/linux/suspend.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/suspend.h b/sys/compat/linuxkpi/common/include/linux/suspend.h index 8458a6f6d4c5..8ceafaf35f56 100644 --- a/sys/compat/linuxkpi/common/include/linux/suspend.h +++ b/sys/compat/linuxkpi/common/include/linux/suspend.h @@ -9,6 +9,10 @@ extern suspend_state_t pm_suspend_target_state; #define PM_SUSPEND_ON 0 #define PM_SUSPEND_TO_IDLE 1 +#define PM_SUSPEND_STANDBY 2 +#define PM_SUSPEND_MEM 3 +#define PM_SUSPEND_MIN PM_SUSPEND_TO_IDLE +#define PM_SUSPEND_MAX 4 static inline int pm_suspend_via_firmware()