From: Viresh Kumar Date: Thu, 4 Dec 2014 04:11:59 +0000 (+0530) Subject: thermal: cpu_cooling: initialize 'cpufreq_val' on registration X-Git-Tag: fixes-v4.0-rc1~365^2^2~1^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7adb635b3cd790e4e0d7e9d0b3dd30574ae36596;p=pandora-kernel.git thermal: cpu_cooling: initialize 'cpufreq_val' on registration There is no point checking for validity of 'cpufreq_val' from cpufreq_thermal_notifier() every time the routine is called. Its guaranteed to be 0 on the first call but will be valid otherwise. Lets update it once while the device registers. Signed-off-by: Viresh Kumar Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed