thermal: cpu_cooling: create structure for idle time stats
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Apr 2017 10:27:20 +0000 (15:57 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 28 May 2017 00:32:48 +0000 (17:32 -0700)
commit81ee14da1051ee87c243b9a0e55d83f1aa274b76
tree3b89fb5aac709bc462b708437ad8d6b17635b33c
parent349d39dc57396e3e9f39170905ff8d626eea9e44
thermal: cpu_cooling: create structure for idle time stats

We keep two arrays for idle time stats and allocate memory for them
separately. It would be much easier to follow if we create an array of
idle stats structure instead and allocate it once.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c