From: Naga Chumbalkar Date: Wed, 9 Mar 2011 14:02:49 +0000 (+0000) Subject: pcc-cpufreq: don't load driver if get_freq fails during init. X-Git-Tag: v2.6.37.4~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ace8f4534de7aa5c42b66751832e57eb4cdab7b5;p=pandora-kernel.git pcc-cpufreq: don't load driver if get_freq fails during init. commit 1f858ef2fbabdc5e645644010a31a40c32e397c9 upstream. Return 0 on failure. This will cause the initialization of the driver to fail and prevent the driver from loading if the BIOS cannot handle the PCC interface command to "get frequency". Otherwise, the driver will load and display a very high value like "4294967274" (which is actually -EINVAL) for frequency: # cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 4294967274 Signed-off-by: Naga Chumbalkar Signed-off-by: Dave Jones Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed