From: Viresh Kumar Date: Thu, 4 Dec 2014 04:12:02 +0000 (+0530) Subject: thermal: cpu_cooling: find max level during device registration X-Git-Tag: fixes-v4.0-rc1~365^2^2~1^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcc6c7fdef9e705b1300be22213fb23e3fd1994d;p=pandora-kernel.git 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 Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed