Showing the changes to include/linux (3 of 10 files). Show all
Unified · Split
| @@ -1165,6 +1165,16 @@ static inline bool device_async_suspend_enabled(struct device *dev) · 1164 unmodified lines | ||
| 1165 | 1165 | return !!dev->power.async_suspend; |
| 1166 | 1166 | } |
| 1167 | 1167 | |
| 1168 | +static inline bool device_pm_not_required(struct device *dev) | |
| 1169 | +{ | |
| 1170 | + return dev->power.no_pm; | |
| 1171 | +} | |
| 1172 | + | |
| 1173 | +static inline void device_set_pm_not_required(struct device *dev) | |
| 1174 | +{ | |
| 1175 | + dev->power.no_pm = true; | |
| 1176 | +} | |
| 1177 | + | |
| 1168 | 1178 | static inline void dev_pm_syscore_device(struct device *dev, bool val) |
| 1169 | 1179 | { |
| 1170 | 1180 | #ifdef CONFIG_PM_SLEEP |
| @@ -592,6 +592,7 @@ struct dev_pm_info { · 591 unmodified lines | ||
| 592 | 592 | bool is_suspended:1; /* Ditto */ |
| 593 | 593 | bool is_noirq_suspended:1; |
| 594 | 594 | bool is_late_suspended:1; |
| 595 | + bool no_pm:1; | |
| 595 | 596 | bool early_init:1; /* Owned by the PM core */ |
| 596 | 597 | bool direct_complete:1; /* Owned by the PM core */ |
| 597 | 598 | u32 driver_flags; |
| @@ -633,9 +634,9 @@ struct dev_pm_info { · 35 unmodified lines | ||
| 633 | 634 | int runtime_error; |
| 634 | 635 | int autosuspend_delay; |
| 635 | 636 | u64 last_busy; |
| 636 | − unsigned long active_jiffies; | |
| 637 | − unsigned long suspended_jiffies; | |
| 638 | − unsigned long accounting_timestamp; | |
| 637 | + u64 active_time; | |
| 638 | + u64 suspended_time; | |
| 639 | + u64 accounting_timestamp; | |
| 639 | 640 | #endif |
| 640 | 641 | struct pm_subsys_data *subsys_data; /* Owned by the subsystem. */ |
| 641 | 642 | void (*set_latency_tolerance)(struct device *, s32); |
| @@ -113,6 +113,8 @@ static inline bool pm_runtime_is_irq_safe(struct device *dev) · 112 unmodified lines | ||
| 113 | 113 | return dev->power.irq_safe; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | +extern u64 pm_runtime_suspended_time(struct device *dev); | |
| 117 | + | |
| 116 | 118 | #else /* !CONFIG_PM */ |
| 117 | 119 | |
| 118 | 120 | static inline bool queue_pm_work(struct work_struct *work) { return false; } |