diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-04 13:22:57 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-04 13:23:12 (GMT) |
commit | 37530f2bda039774bd65aea14cc1d1dd26a82b9e (patch) | |
tree | 43a1e1e8f2189b200cf7a6df1bd22e1321c31a91 /drivers/scsi/arm/Makefile | |
parent | b81ea1b5ac4d3c6a628158b736dd4a98c46c29d9 (diff) | |
download | linux-fsl-qoriq-37530f2bda039774bd65aea14cc1d1dd26a82b9e.tar.xz |
PM / QoS: Remove device PM QoS sysfs attributes at the right place
Device PM QoS sysfs attributes, if present during device removal,
are removed from within device_pm_remove(), which is too late,
since dpm_sysfs_remove() has already removed the whole attribute
group they belonged to. However, moving the removal of those
attributes to dpm_sysfs_remove() alone is not sufficient, because
in theory they still can be re-added right after being removed by it
(the device's driver is still bound to it at that point).
For this reason, move the entire desctruction of device PM QoS
constraints to dpm_sysfs_remove() and make it prevent any new
constraints from being added after it has run. Also, move the
initialization of the power.qos field in struct device to
device_pm_init_common() and drop the no longer needed
dev_pm_qos_constraints_init().
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/scsi/arm/Makefile')
0 files changed, 0 insertions, 0 deletions