diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-02-22 06:59:43 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-02-27 18:22:12 +0100 |
commit | b24b6478e65f140610ab1ffaadc7bc6bf0be8aad (patch) | |
tree | 0502467742659777a64b04385cb6bc54e32a2e6d /drivers/cpufreq/arm_big_little.c | |
parent | cpufreq: mediatek: Convert pr_warn() to pr_debug() (diff) | |
download | linux-b24b6478e65f140610ab1ffaadc7bc6bf0be8aad.tar.xz linux-b24b6478e65f140610ab1ffaadc7bc6bf0be8aad.zip |
cpufreq: Reorder cpufreq_online() error code path
Ideally the de-allocation of resources should happen in the exact
opposite order in which they were allocated. It helps maintain the code
in long term, even if nothing really breaks with incorrect ordering.
That wasn't followed in cpufreq_online() and it has some
inconsistencies. For example, the symlinks were created from within
the locked region while they are removed only after putting the locks.
Also ->exit() should have been called only after the symlinks are
removed and the lock is dropped, as that was the case when ->init()
was first called.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/arm_big_little.c')
0 files changed, 0 insertions, 0 deletions