diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-29 15:46:48 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-29 15:46:48 -0500 |
| commit | 170bb4c800d2b65df52f37400fb20276273650d8 (patch) | |
| tree | 86ff97efaeeac6e8533feb4899ec674ddbc0a065 | |
| parent | 64adb0192ff309051492b34139bb842024ebb119 (diff) | |
| parent | e5f5762177be52fde50ccba88938d66b5103c8e0 (diff) | |
Merge branch 'pm-sleep'
* pm-sleep:
PM / Freezer: Fixup compile error of try_to_freeze_nowarn()
driver core / PM: move the calling to device_pm_remove behind the calling to bus_remove_device
PM / Hibernate: use rb_entry
PM / sysfs: replace strict_str* with kstrto*
| -rw-r--r-- | drivers/base/core.c | 2 | ||||
| -rw-r--r-- | include/linux/freezer.h | 1 | ||||
| -rw-r--r-- | kernel/power/main.c | 2 | ||||
| -rw-r--r-- | kernel/power/qos.c | 2 | ||||
| -rw-r--r-- | kernel/power/swap.c | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index abea76c36a4b..150a41580fad 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
| @@ -1180,7 +1180,6 @@ void device_del(struct device *dev) | |||
| 1180 | if (dev->bus) | 1180 | if (dev->bus) |
| 1181 | blocking_notifier_call_chain(&dev->bus->p->bus_notifier, | 1181 | blocking_notifier_call_chain(&dev->bus->p->bus_notifier, |
| 1182 | BUS_NOTIFY_DEL_DEVICE, dev); | 1182 | BUS_NOTIFY_DEL_DEVICE, dev); |
| 1183 | device_pm_remove(dev); | ||
| 1184 | dpm_sysfs_remove(dev); | 1183 | dpm_sysfs_remove(dev); |
| 1185 | if (parent) | 1184 | if (parent) |
| 1186 | klist_del(&dev->p->knode_parent); | 1185 | klist_del(&dev->p->knode_parent); |
| @@ -1205,6 +1204,7 @@ void device_del(struct device *dev) | |||
| 1205 | device_remove_file(dev, &uevent_attr); | 1204 | device_remove_file(dev, &uevent_attr); |
| 1206 | device_remove_attrs(dev); | 1205 | device_remove_attrs(dev); |
| 1207 | bus_remove_device(dev); | 1206 | bus_remove_device(dev); |
| 1207 | device_pm_remove(dev); | ||
| 1208 | driver_deferred_probe_del(dev); | 1208 | driver_deferred_probe_del(dev); |
| 1209 | 1209 | ||
| 1210 | /* Notify the platform of the removal, in case they | 1210 | /* Notify the platform of the removal, in case they |
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index d09af4b67cf1..b90091af5798 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
| @@ -177,6 +177,7 @@ static inline int freeze_kernel_threads(void) { return -ENOSYS; } | |||
| 177 | static inline void thaw_processes(void) {} | 177 | static inline void thaw_processes(void) {} |
| 178 | static inline void thaw_kernel_threads(void) {} | 178 | static inline void thaw_kernel_threads(void) {} |
| 179 | 179 | ||
| 180 | static inline bool try_to_freeze_nowarn(void) { return false; } | ||
| 180 | static inline bool try_to_freeze(void) { return false; } | 181 | static inline bool try_to_freeze(void) { return false; } |
| 181 | 182 | ||
| 182 | static inline void freezer_do_not_count(void) {} | 183 | static inline void freezer_do_not_count(void) {} |
diff --git a/kernel/power/main.c b/kernel/power/main.c index f458238109cc..1c16f9167de1 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
| @@ -59,7 +59,7 @@ static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, | |||
| 59 | { | 59 | { |
| 60 | unsigned long val; | 60 | unsigned long val; |
| 61 | 61 | ||
| 62 | if (strict_strtoul(buf, 10, &val)) | 62 | if (kstrtoul(buf, 10, &val)) |
| 63 | return -EINVAL; | 63 | return -EINVAL; |
| 64 | 64 | ||
| 65 | if (val > 1) | 65 | if (val > 1) |
diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 2ab2819aee65..9322ff7eaad6 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c | |||
| @@ -563,7 +563,7 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, | |||
| 563 | } else { | 563 | } else { |
| 564 | ascii_value[count] = '\0'; | 564 | ascii_value[count] = '\0'; |
| 565 | } | 565 | } |
| 566 | ret = strict_strtoul(ascii_value, 16, &ulval); | 566 | ret = kstrtoul(ascii_value, 16, &ulval); |
| 567 | if (ret) { | 567 | if (ret) { |
| 568 | pr_debug("%s, 0x%lx, 0x%x\n", ascii_value, ulval, ret); | 568 | pr_debug("%s, 0x%lx, 0x%x\n", ascii_value, ulval, ret); |
| 569 | return -EINVAL; | 569 | return -EINVAL; |
diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 3c9d764eb0d8..7c33ed200410 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c | |||
| @@ -126,7 +126,7 @@ static int swsusp_extents_insert(unsigned long swap_offset) | |||
| 126 | 126 | ||
| 127 | /* Figure out where to put the new node */ | 127 | /* Figure out where to put the new node */ |
| 128 | while (*new) { | 128 | while (*new) { |
| 129 | ext = container_of(*new, struct swsusp_extent, node); | 129 | ext = rb_entry(*new, struct swsusp_extent, node); |
| 130 | parent = *new; | 130 | parent = *new; |
| 131 | if (swap_offset < ext->start) { | 131 | if (swap_offset < ext->start) { |
| 132 | /* Try to merge */ | 132 | /* Try to merge */ |
