diff options
author | Naga Chumbalkar <nagananda.chumbalkar@hp.com> | 2011-03-09 15:02:49 +0100 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-03-09 18:33:15 +0100 |
commit | 1f858ef2fbabdc5e645644010a31a40c32e397c9 (patch) | |
tree | 8d9d0306d0cc275e72b9fa34101f844e5a573ebe /arch/alpha | |
parent | Linux 2.6.38-rc8 (diff) | |
download | linux-1f858ef2fbabdc5e645644010a31a40c32e397c9.tar.xz linux-1f858ef2fbabdc5e645644010a31a40c32e397c9.zip |
[CPUFREQ] pcc-cpufreq: don't load driver if get_freq fails during init.
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 <nagananda.chumbalkar@hp.com>
CC: stable@kernel.org
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/alpha')
0 files changed, 0 insertions, 0 deletions