Skip to content

Commit 327c329

Browse files
author
Joel Slebodnick
committed
cpufreq: tegra194: Enable CPUFREQ thermal cooling
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2165104 Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git (cherry picked from commit 7214015) Tested: Kernel booted on Orin board with no warnings using device tree commit 7214015 Author: Yi-Wei Wang <yiweiw@nvidia.com> Date: Tue Jan 24 11:53:23 2023 +0000 cpufreq: tegra194: Enable CPUFREQ thermal cooling Populate the flag CPUFREQ_IS_COOLING_DEV for the Tegra194 CPUFREQ driver to register it as a cooling device. This enables CPU frequency throttling for CPUs when the passive trip points are crossed. Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com> Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> (cherry picked from commit 7214015) Signed-off-by: Joel Slebodnick <jslebodn@redhat.com>
1 parent 5adde37 commit 327c329

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/cpufreq/tegra194-cpufreq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ static int tegra194_cpufreq_set_target(struct cpufreq_policy *policy,
415415

416416
static struct cpufreq_driver tegra194_cpufreq_driver = {
417417
.name = "tegra194",
418-
.flags = CPUFREQ_CONST_LOOPS | CPUFREQ_NEED_INITIAL_FREQ_CHECK,
418+
.flags = CPUFREQ_CONST_LOOPS | CPUFREQ_NEED_INITIAL_FREQ_CHECK |
419+
CPUFREQ_IS_COOLING_DEV,
419420
.verify = cpufreq_generic_frequency_table_verify,
420421
.target_index = tegra194_cpufreq_set_target,
421422
.get = tegra194_get_speed,

0 commit comments

Comments
 (0)