summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorNaga Chumbalkar <nagananda.chumbalkar@hp.com>2011-03-09 14:02:49 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 14:17:35 -0700
commitace8f4534de7aa5c42b66751832e57eb4cdab7b5 (patch)
treea00fd150f665ff80999f7cee1cd15fc661577524 /net/lapb/lapb_iface.c
parent2110938fd67a059ae99b030c74997cfb142c4d6b (diff)
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 <nagananda.chumbalkar@hp.com> Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions