87
87
return !dev->power.disable_depth;
90
static inline bool pm_runtime_callbacks_present(struct device *dev)
92
return !dev->power.no_callbacks;
90
95
static inline void pm_runtime_mark_last_busy(struct device *dev)
92
97
ACCESS_ONCE(dev->power.last_busy) = jiffies;
133
138
static inline void pm_runtime_no_callbacks(struct device *dev) {}
134
139
static inline void pm_runtime_irq_safe(struct device *dev) {}
141
static inline bool pm_runtime_callbacks_present(struct device *dev) { return false; }
136
142
static inline void pm_runtime_mark_last_busy(struct device *dev) {}
137
143
static inline void __pm_runtime_use_autosuspend(struct device *dev,
239
245
__pm_runtime_use_autosuspend(dev, false);
248
struct pm_clk_notifier_block {
249
struct notifier_block nb;
250
struct dev_power_domain *pwr_domain;
254
#ifdef CONFIG_PM_RUNTIME_CLK
255
extern int pm_runtime_clk_init(struct device *dev);
256
extern void pm_runtime_clk_destroy(struct device *dev);
257
extern int pm_runtime_clk_add(struct device *dev, const char *con_id);
258
extern void pm_runtime_clk_remove(struct device *dev, const char *con_id);
259
extern int pm_runtime_clk_suspend(struct device *dev);
260
extern int pm_runtime_clk_resume(struct device *dev);
262
static inline int pm_runtime_clk_init(struct device *dev)
266
static inline void pm_runtime_clk_destroy(struct device *dev)
269
static inline int pm_runtime_clk_add(struct device *dev, const char *con_id)
273
static inline void pm_runtime_clk_remove(struct device *dev, const char *con_id)
276
#define pm_runtime_clock_suspend NULL
277
#define pm_runtime_clock_resume NULL
280
#ifdef CONFIG_HAVE_CLK
281
extern void pm_runtime_clk_add_notifier(struct bus_type *bus,
282
struct pm_clk_notifier_block *clknb);
284
static inline void pm_runtime_clk_add_notifier(struct bus_type *bus,
285
struct pm_clk_notifier_block *clknb)