cpufreq: arm_big_little: Don't destroy/create freq table/clk for every cpu on/off
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 14 Dec 2012 02:34:07 +0000 (08:04 +0530)
committerJon Medhurst <tixy@linaro.org>
Fri, 19 Jul 2013 12:43:15 +0000 (13:43 +0100)
commitcd29031261277b51cc8fc77f7006a1b149cd224f
tree44235b43a80fc7dffced40efe3d92e13591b7447
parentcfcdfd05b559b2682546a56ac91219a838441bf7
cpufreq: arm_big_little: Don't destroy/create freq table/clk for every cpu on/off

When a cpu goes down, exit would be called for it. Similarly for every cpu up
init would be called. This would result in same freq table and clk structure to
get freed/allocated again. There is no way for freq table/clk structures to
change between these calls.

Also, when we disable switcher, firstly cpufreq unregister would be called and
hence exit for all cpus and then register would be called, i.e. init would be
called.

For saving time/energy for both cases, lets not free table/clk until module exit
is not done.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/arm_big_little.c