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*
This commit is contained in:
commit
170bb4c800
@ -1180,7 +1180,6 @@ void device_del(struct device *dev)
|
|||||||
if (dev->bus)
|
if (dev->bus)
|
||||||
blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
|
blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
|
||||||
BUS_NOTIFY_DEL_DEVICE, dev);
|
BUS_NOTIFY_DEL_DEVICE, dev);
|
||||||
device_pm_remove(dev);
|
|
||||||
dpm_sysfs_remove(dev);
|
dpm_sysfs_remove(dev);
|
||||||
if (parent)
|
if (parent)
|
||||||
klist_del(&dev->p->knode_parent);
|
klist_del(&dev->p->knode_parent);
|
||||||
@ -1205,6 +1204,7 @@ void device_del(struct device *dev)
|
|||||||
device_remove_file(dev, &uevent_attr);
|
device_remove_file(dev, &uevent_attr);
|
||||||
device_remove_attrs(dev);
|
device_remove_attrs(dev);
|
||||||
bus_remove_device(dev);
|
bus_remove_device(dev);
|
||||||
|
device_pm_remove(dev);
|
||||||
driver_deferred_probe_del(dev);
|
driver_deferred_probe_del(dev);
|
||||||
|
|
||||||
/* Notify the platform of the removal, in case they
|
/* Notify the platform of the removal, in case they
|
||||||
|
@ -177,6 +177,7 @@ static inline int freeze_kernel_threads(void) { return -ENOSYS; }
|
|||||||
static inline void thaw_processes(void) {}
|
static inline void thaw_processes(void) {}
|
||||||
static inline void thaw_kernel_threads(void) {}
|
static inline void thaw_kernel_threads(void) {}
|
||||||
|
|
||||||
|
static inline bool try_to_freeze_nowarn(void) { return false; }
|
||||||
static inline bool try_to_freeze(void) { return false; }
|
static inline bool try_to_freeze(void) { return false; }
|
||||||
|
|
||||||
static inline void freezer_do_not_count(void) {}
|
static inline void freezer_do_not_count(void) {}
|
||||||
|
@ -59,7 +59,7 @@ static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr,
|
|||||||
{
|
{
|
||||||
unsigned long val;
|
unsigned long val;
|
||||||
|
|
||||||
if (strict_strtoul(buf, 10, &val))
|
if (kstrtoul(buf, 10, &val))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (val > 1)
|
if (val > 1)
|
||||||
|
@ -563,7 +563,7 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
|
|||||||
} else {
|
} else {
|
||||||
ascii_value[count] = '\0';
|
ascii_value[count] = '\0';
|
||||||
}
|
}
|
||||||
ret = strict_strtoul(ascii_value, 16, &ulval);
|
ret = kstrtoul(ascii_value, 16, &ulval);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_debug("%s, 0x%lx, 0x%x\n", ascii_value, ulval, ret);
|
pr_debug("%s, 0x%lx, 0x%x\n", ascii_value, ulval, ret);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -126,7 +126,7 @@ static int swsusp_extents_insert(unsigned long swap_offset)
|
|||||||
|
|
||||||
/* Figure out where to put the new node */
|
/* Figure out where to put the new node */
|
||||||
while (*new) {
|
while (*new) {
|
||||||
ext = container_of(*new, struct swsusp_extent, node);
|
ext = rb_entry(*new, struct swsusp_extent, node);
|
||||||
parent = *new;
|
parent = *new;
|
||||||
if (swap_offset < ext->start) {
|
if (swap_offset < ext->start) {
|
||||||
/* Try to merge */
|
/* Try to merge */
|
||||||
|
Loading…
Reference in New Issue
Block a user