diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-27 21:13:44 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-02-03 22:56:54 +0100 |
commit | f104e1e5ef5788f02de2053bfbd0f02d629b6036 (patch) | |
tree | f336adc77a74f738525b3693dcf5bb6fbd08423e /kernel/cred.c | |
parent | PM / Domains: Free pm_subsys_data in error path in __pm_genpd_add_device() (diff) | |
download | linux-f104e1e5ef5788f02de2053bfbd0f02d629b6036.tar.xz linux-f104e1e5ef5788f02de2053bfbd0f02d629b6036.zip |
PM / Domains: Re-order initialization of generic_pm_domain_data
Move the initialization of the struct generic_pm_domain_data into
genpd_alloc_dev_data(), including the assignment of the device's
->pm_domain() callback. Make corresponding changes to
genpd_free_dev_data().
These changes will make the related code more readable. It will also
decrease the critical regions for where genpd's mutex is being held and
for where the device's power related spinlock is being held.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/cred.c')
0 files changed, 0 insertions, 0 deletions