diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpu.h | 4 | ||||
| -rw-r--r-- | include/linux/freezer.h | 11 | ||||
| -rw-r--r-- | include/linux/opp.h | 4 |
3 files changed, 5 insertions, 14 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index b1a635acf72a..6cb60fd2ea84 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -196,13 +196,9 @@ static inline void cpu_hotplug_driver_unlock(void) | |||
| 196 | #endif /* CONFIG_HOTPLUG_CPU */ | 196 | #endif /* CONFIG_HOTPLUG_CPU */ |
| 197 | 197 | ||
| 198 | #ifdef CONFIG_PM_SLEEP_SMP | 198 | #ifdef CONFIG_PM_SLEEP_SMP |
| 199 | extern int suspend_cpu_hotplug; | ||
| 200 | |||
| 201 | extern int disable_nonboot_cpus(void); | 199 | extern int disable_nonboot_cpus(void); |
| 202 | extern void enable_nonboot_cpus(void); | 200 | extern void enable_nonboot_cpus(void); |
| 203 | #else /* !CONFIG_PM_SLEEP_SMP */ | 201 | #else /* !CONFIG_PM_SLEEP_SMP */ |
| 204 | #define suspend_cpu_hotplug 0 | ||
| 205 | |||
| 206 | static inline int disable_nonboot_cpus(void) { return 0; } | 202 | static inline int disable_nonboot_cpus(void) { return 0; } |
| 207 | static inline void enable_nonboot_cpus(void) {} | 203 | static inline void enable_nonboot_cpus(void) {} |
| 208 | #endif /* !CONFIG_PM_SLEEP_SMP */ | 204 | #endif /* !CONFIG_PM_SLEEP_SMP */ |
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index a49b52934c55..a5386e3ee756 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
| @@ -143,14 +143,9 @@ static inline void set_freezable_with_signal(void) | |||
| 143 | #define wait_event_freezekillable(wq, condition) \ | 143 | #define wait_event_freezekillable(wq, condition) \ |
| 144 | ({ \ | 144 | ({ \ |
| 145 | int __retval; \ | 145 | int __retval; \ |
| 146 | do { \ | 146 | freezer_do_not_count(); \ |
| 147 | __retval = wait_event_killable(wq, \ | 147 | __retval = wait_event_killable(wq, (condition)); \ |
| 148 | (condition) || freezing(current)); \ | 148 | freezer_count(); \ |
| 149 | if (__retval && !freezing(current)) \ | ||
| 150 | break; \ | ||
| 151 | else if (!(condition)) \ | ||
| 152 | __retval = -ERESTARTSYS; \ | ||
| 153 | } while (try_to_freeze()); \ | ||
| 154 | __retval; \ | 149 | __retval; \ |
| 155 | }) | 150 | }) |
| 156 | 151 | ||
diff --git a/include/linux/opp.h b/include/linux/opp.h index 87a9208f8aec..ee94b33080c2 100644 --- a/include/linux/opp.h +++ b/include/linux/opp.h | |||
| @@ -97,11 +97,11 @@ static inline int opp_disable(struct device *dev, unsigned long freq) | |||
| 97 | return 0; | 97 | return 0; |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | struct srcu_notifier_head *opp_get_notifier(struct device *dev) | 100 | static inline struct srcu_notifier_head *opp_get_notifier(struct device *dev) |
| 101 | { | 101 | { |
| 102 | return ERR_PTR(-EINVAL); | 102 | return ERR_PTR(-EINVAL); |
| 103 | } | 103 | } |
| 104 | #endif /* CONFIG_PM */ | 104 | #endif /* CONFIG_PM_OPP */ |
| 105 | 105 | ||
| 106 | #if defined(CONFIG_CPU_FREQ) && defined(CONFIG_PM_OPP) | 106 | #if defined(CONFIG_CPU_FREQ) && defined(CONFIG_PM_OPP) |
| 107 | int opp_init_cpufreq_table(struct device *dev, | 107 | int opp_init_cpufreq_table(struct device *dev, |
