Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c53614ec authored by Roel Kluin's avatar Roel Kluin Committed by Dave Jones
Browse files

[CPUFREQ] powernow-k8: Fix test in get_transition_latency()



Not makes it a bool before the comparison.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent f7f3cad0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1022,7 +1022,7 @@ static int get_transition_latency(struct powernow_k8_data *data)
		 * set it to 1 to avoid problems in the future.
		 * set it to 1 to avoid problems in the future.
		 * For all others it's a BIOS bug.
		 * 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 "
			printk(KERN_ERR FW_WARN PFX "Invalid zero transition "
				"latency\n");
				"latency\n");
		max_latency = 1;
		max_latency = 1;