diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-05 20:54:18 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-05 20:54:18 -0400 |
| commit | 8110efc64c4790cd1bf7e30f080e5ba3faa7cb85 (patch) | |
| tree | 708c2a1ef6bebce8eda9676c554bea366547678e /include/linux | |
| parent | 06d8eb1b7d1eb34c76538dab791bc14136ebbc8f (diff) | |
| parent | d6cc76856d353a3a9c43bead33210b9216dce332 (diff) | |
Merge branch 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
* 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
PM / Freezer: Revert 27920651fe "PM / Freezer: Make fake_signal_wake_up() wake TASK_KILLABLE tasks too"
PM / Freezer: Reimplement wait_event_freezekillable using freezer_do_not_count/freezer_count
USB: Update last_busy time after autosuspend fails
PM / Runtime: Automatically retry failed autosuspends
PM / QoS: Remove redundant check
PM / OPP: Fix build when CONFIG_PM_OPP is not set
PM / Runtime: Fix runtime accounting calculation error
PM / Sleep: Update freezer documentation
PM / Sleep: Remove unused symbol 'suspend_cpu_hotplug'
PM / Sleep: Fix race between CPU hotplug and freezer
ACPI / PM: Add Sony VPCEB17FX to nonvs blacklist
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, |
