From: Dirk Brandewie Date: Thu, 17 Jan 2013 16:22:21 +0000 (+0000) Subject: cpufreq: handle cpufreq being disabled for all exported function. X-Git-Tag: v3.9-rc1~146^2~3^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5aaffa9dd531c978c6f3fea06a2972653bd7fc8;p=pandora-kernel.git cpufreq: handle cpufreq being disabled for all exported function. When disable_cpufreq() is called some exported functions are still being used that do not have a check for cpufreq being disabled. Add a disabled check into cpufreq_cpu_get() to return NULL if cpufreq is disabled this covers most of the exported functions. For the exported functions that do not call cpufreq_cpu_get() add an explicit check. Signed-off-by: Dirk Brandewie Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed