From: Roel Kluin Date: Tue, 6 Oct 2009 15:36:53 +0000 (+0200) Subject: [CPUFREQ] powernow-k8: Fix test in get_transition_latency() X-Git-Tag: v2.6.32-rc8~4^2~5 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c53614ec17fe6296a696aa4ac71a799814bb50c1;p=~emulex%2Finfiniband.git [CPUFREQ] powernow-k8: Fix test in get_transition_latency() Not makes it a bool before the comparison. Signed-off-by: Roel Kluin Signed-off-by: Dave Jones --- diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c index 6394aa5c798..3f12dabeab5 100644 --- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c @@ -1022,7 +1022,7 @@ static int get_transition_latency(struct powernow_k8_data *data) * set it to 1 to avoid problems in the future. * For all others it's a BIOS bug. */ - if (!boot_cpu_data.x86 == 0x11) + if (boot_cpu_data.x86 != 0x11) printk(KERN_ERR FW_WARN PFX "Invalid zero transition " "latency\n"); max_latency = 1;