diff options
author | 2014-12-04 09:42:02 +0530 | |
---|---|---|
committer | 2014-12-08 14:07:10 -0400 | |
commit | dcc6c7fdef9e705b1300be22213fb23e3fd1994d (patch) | |
tree | 605b149f51bbde723335f84a37eb24894ac76fb2 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | thermal: cpu_cooling: remove unnecessary wrapper get_cpu_frequency() (diff) | |
download | linux-dev-dcc6c7fdef9e705b1300be22213fb23e3fd1994d.tar.xz linux-dev-dcc6c7fdef9e705b1300be22213fb23e3fd1994d.zip |
thermal: cpu_cooling: find max level during device registration
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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions