Skip to content

Commit 7214015

Browse files
yiweiw-nvidiavireshk
authored andcommitted
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>
1 parent 51be2ff commit 7214015

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/cpufreq/tegra194-cpufreq.c

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

412412
static struct cpufreq_driver tegra194_cpufreq_driver = {
413413
.name = "tegra194",
414-
.flags = CPUFREQ_CONST_LOOPS | CPUFREQ_NEED_INITIAL_FREQ_CHECK,
414+
.flags = CPUFREQ_CONST_LOOPS | CPUFREQ_NEED_INITIAL_FREQ_CHECK |
415+
CPUFREQ_IS_COOLING_DEV,
415416
.verify = cpufreq_generic_frequency_table_verify,
416417
.target_index = tegra194_cpufreq_set_target,
417418
.get = tegra194_get_speed,

0 commit comments

Comments
 (0)