thermal: cpu_cooling: find max level during device registration
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:12:02 +0000 (09:42 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 18:07:10 +0000 (14:07 -0400)
CPU frequency tables don't update after the driver is registered and so we don't
need to iterate over them to find total number of states every time
cpufreq_get_max_state() is called. Do it once at boot time.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

No differences found