diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-01-11 22:23:14 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-02-16 11:55:12 +0000 |
commit | 66e0e1636849da5c9109a553bef5f483cad6b7c3 (patch) | |
tree | 2cb418c8dee1f002095c31c2834304c0f0f676d1 | |
parent | 70bbe8425bc7118f4971264ed577eacdd8237447 (diff) | |
download | src-66e0e1636849da5c9109a553bef5f483cad6b7c3.tar.gz src-66e0e1636849da5c9109a553bef5f483cad6b7c3.zip |
linuxkpi: Add `pm_runtime_suspended()`
Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38083
(cherry picked from commit 710c6084d11025fb3640dc1146ae1b157475333b)
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/pm_runtime.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h index 42c96a92b1ad..616dd508e562 100644 --- a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h +++ b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h @@ -40,4 +40,10 @@ pm_runtime_get_if_active(struct device *dev, bool x) return 1; } +static inline int +pm_runtime_suspended(struct device *dev) +{ + return 0; +} + #endif /* _LINUXKPI_LINUX_PM_RUNTIME_H_ */ |