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

Commit 9fb31c3a authored by Rafa Bilski's avatar Rafa Bilski Committed by Dave Jones
Browse files

[CPUFREQ] Longhaul - Fix power state test to do something more useful



This is changing "always true" test to something usefull.

Signed-off-by: default avatarRafa Bilski <rafalbilski@interia.pl>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent eb23c751
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -550,7 +550,7 @@ static int __init longhaul_cpu_init(struct cpufreq_policy *policy)
	if (pr == NULL) goto err_acpi;

	cx = &pr->power.states[ACPI_STATE_C3];
	if (cx == NULL || cx->latency > 1000) goto err_acpi;
	if (cx->address == 0 || cx->latency > 1000) goto err_acpi;

	/* Now check what we have on this motherboard */
	switch (c->x86_model) {