pm_runtime_resume_and_get is used by new versions of amdgpu, and began use between Linux kernel version 6.12, and 6.14. Reviewed by: dumbbell Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57463 (cherry picked from commit 7e1245aafeece1a56af292c2652c6b835ccb6f10)
60 lines
1.4 KiB
C
60 lines
1.4 KiB
C
/* Public domain. */
|
|
|
|
#ifndef _LINUXKPI_LINUX_PM_RUNTIME_H_
|
|
#define _LINUXKPI_LINUX_PM_RUNTIME_H_
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/pm.h>
|
|
|
|
#define pm_runtime_mark_last_busy(x) (void)(x)
|
|
#define pm_runtime_use_autosuspend(x) (void)(x)
|
|
#define pm_runtime_dont_use_autosuspend(x) (void)(x)
|
|
#define pm_runtime_put_autosuspend(x) (void)(x)
|
|
#define pm_runtime_set_autosuspend_delay(x, y) (void)(x); (void)(y)
|
|
#define pm_runtime_set_active(x) (void)(x)
|
|
#define pm_runtime_allow(x) (void)(x)
|
|
#define pm_runtime_put_noidle(x) (void)(x)
|
|
#define pm_runtime_forbid(x) (void)(x)
|
|
#define pm_runtime_get_noresume(x) (void)(x)
|
|
#define pm_runtime_put(x) (void)(x)
|
|
#define pm_runtime_enable(x) (void)(x)
|
|
#define pm_runtime_disable(x) (void)(x)
|
|
#define pm_runtime_autosuspend(x) (void)(x)
|
|
#define pm_runtime_resume(x) (void)(x)
|
|
|
|
static inline int
|
|
pm_runtime_get_sync(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int
|
|
pm_runtime_get_if_in_use(struct device *dev)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION < 60900
|
|
static inline int
|
|
pm_runtime_get_if_active(struct device *dev, bool x)
|
|
#else
|
|
static inline int
|
|
pm_runtime_get_if_active(struct device *dev)
|
|
#endif
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
static inline int
|
|
pm_runtime_suspended(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int
|
|
pm_runtime_resume_and_get(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* _LINUXKPI_LINUX_PM_RUNTIME_H_ */
|