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

Commit 75b245b3 authored by Thomas Renninger's avatar Thomas Renninger Committed by Len Brown
Browse files

[ACPI] fix passive cooling regression

Return logic was inverted.
Going for changing the return value to not return zero as it is makes
more sense regarding the naming of the function (cpu_has_cpufreq()).

http://bugzilla.kernel.org/show_bug.cgi?id=3410



Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent b05948d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -102,8 +102,8 @@ static int cpu_has_cpufreq(unsigned int cpu)
{
	struct cpufreq_policy policy;
	if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu))
		return -ENODEV;
		return 0;
	return 1;
}

static int acpi_thermal_cpufreq_increase(unsigned int cpu)