参照元†
- FIXME: これは何?
- CONFIG_PM_RUNTIME 有効: drivers/base/power/runtime.c の実装を使用する。
- CONFIG_PM_RUNTIME 無効: include/linux/pm_runtime.h の実装を使用する。
 
返り値†
実装 drivers/base/power/runtime.c†
/**
 * pm_runtime_resume - Carry out run-time resume of given device.
 * @dev: Device to suspend.
 */
int pm_runtime_resume(struct device *dev)
{
	int retval;
	spin_lock_irq(&dev->power.lock);
	retval = __pm_runtime_resume(dev, false);
	spin_unlock_irq(&dev->power.lock);
	return retval;
}
EXPORT_SYMBOL_GPL(pm_runtime_resume);
実装 include/linux/pm_runtime.h†
#ifdef CONFIG_PM_RUNTIME
(...snip...)
extern int __pm_runtime_get(struct device *dev, bool sync);
(...snip...)
#else /* !CONFIG_PM_RUNTIME */
(...snip...)
static inline int pm_runtime_resume(struct device *dev) { return 0; }
(...snip...)
#endif /* !CONFIG_PM_RUNTIME */
コメント†