Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/pm_runtime.h
- This file was added.
/* Public domain. */ | |||||
bz: I'll just ask here again -- but probably for all the other files with this as well -- what's… | |||||
Done Inline ActionsOriginally taken from OpenBSD. manu: Originally taken from OpenBSD. | |||||
#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; | |||||
} | |||||
static inline int | |||||
pm_runtime_get_if_active(struct device *dev, bool x) | |||||
{ | |||||
return 1; | |||||
} | |||||
#endif /* _LINUXKPI_LINUX_PM_RUNTIME_H_ */ |
I'll just ask here again -- but probably for all the other files with this as well -- what's the reason? I need no "Obtained from: " in the description either to explain it.