|
@@ -88,6 +88,11 @@ static inline bool device_may_wakeup(struct device *dev)
|
|
return dev->power.can_wakeup && !!dev->power.wakeup;
|
|
return dev->power.can_wakeup && !!dev->power.wakeup;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline void device_set_wakeup_path(struct device *dev)
|
|
|
|
+{
|
|
|
|
+ dev->power.wakeup_path = true;
|
|
|
|
+}
|
|
|
|
+
|
|
/* drivers/base/power/wakeup.c */
|
|
/* drivers/base/power/wakeup.c */
|
|
extern void wakeup_source_prepare(struct wakeup_source *ws, const char *name);
|
|
extern void wakeup_source_prepare(struct wakeup_source *ws, const char *name);
|
|
extern struct wakeup_source *wakeup_source_create(const char *name);
|
|
extern struct wakeup_source *wakeup_source_create(const char *name);
|
|
@@ -174,6 +179,8 @@ static inline bool device_may_wakeup(struct device *dev)
|
|
return dev->power.can_wakeup && dev->power.should_wakeup;
|
|
return dev->power.can_wakeup && dev->power.should_wakeup;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline void device_set_wakeup_path(struct device *dev) {}
|
|
|
|
+
|
|
static inline void __pm_stay_awake(struct wakeup_source *ws) {}
|
|
static inline void __pm_stay_awake(struct wakeup_source *ws) {}
|
|
|
|
|
|
static inline void pm_stay_awake(struct device *dev) {}
|
|
static inline void pm_stay_awake(struct device *dev) {}
|