Skip to content

Commit

Permalink
[CPUFREQ] powernow-k8: Fix test in get_transition_latency()
Browse files Browse the repository at this point in the history
Not makes it a bool before the comparison.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Dave Jones <[email protected]>
  • Loading branch information
RoelKluin authored and Dave Jones committed Nov 18, 2009
1 parent f7f3cad commit c53614e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/cpufreq/powernow-k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c53614e

Please sign in to comment.