[PATCH 1/2] cpufreq: Reorder cpufreq_online() a bit

2018-02-21 Thread Viresh Kumar
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. The same wasn't followed in cpufreq_online() and it has some inconsistencies. For example,

[PATCH 1/2] cpufreq: Reorder cpufreq_online() a bit

2018-02-21 Thread Viresh Kumar
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. The same wasn't followed in cpufreq_online() and it has some inconsistencies. For example,