power.h (597473720f4dc69749542bfcfed4a927a43d935e) power.h (c8377adfa78103be5380200eb9dab764d7ca890e)
1/* SPDX-License-Identifier: GPL-2.0 */
2#include <linux/pm_qos.h>
3
4static inline void device_pm_init_common(struct device *dev)
5{
6 if (!dev->power.early_init) {
7 spin_lock_init(&dev->power.lock);
8 dev->power.qos = NULL;

--- 135 unchanged lines hidden (view full) ---

144#endif /* !CONFIG_PM_SLEEP */
145
146static inline void device_pm_init(struct device *dev)
147{
148 device_pm_init_common(dev);
149 device_pm_sleep_init(dev);
150 pm_runtime_init(dev);
151}
1/* SPDX-License-Identifier: GPL-2.0 */
2#include <linux/pm_qos.h>
3
4static inline void device_pm_init_common(struct device *dev)
5{
6 if (!dev->power.early_init) {
7 spin_lock_init(&dev->power.lock);
8 dev->power.qos = NULL;

--- 135 unchanged lines hidden (view full) ---

144#endif /* !CONFIG_PM_SLEEP */
145
146static inline void device_pm_init(struct device *dev)
147{
148 device_pm_init_common(dev);
149 device_pm_sleep_init(dev);
150 pm_runtime_init(dev);
151}
152
153#ifdef CONFIG_PM_SLEEP
154
155/* drivers/base/power/wakeup_stats.c */
156extern int wakeup_source_sysfs_add(struct device *parent,
157 struct wakeup_source *ws);
158extern void wakeup_source_sysfs_remove(struct wakeup_source *ws);
159
160#endif /* CONFIG_PM_SLEEP */