参照元

説明

引数

返り値

参考

実装 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 */

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS