cpufreq: tegra194: Enable CPUFREQ thermal cooling
Subsystems (2)
Jon Hunter
maintainerPATCH 1/1 cpufreq: tegra194: Enable CPUFREQ thermal cooling
From: Yi-Wei Wang <[email protected]>
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 <[email protected]>
Signed-off-by Jon Hunter <[email protected]>
--- drivers/cpufreq/tegra194-cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/cpufreq/tegra194-cpufreq.c +2 -1
@@ -411,7 +411,8 @@ static int tegra194_cpufreq_set_target(struct cpufreq_policy *policy,static struct cpufreq_driver tegra194_cpufreq_driver = { .name ="tegra194" , - .flags =CPUFREQ_CONST_LOOPS |CPUFREQ_NEED_INITIAL_FREQ_CHECK , + .flags =CPUFREQ_CONST_LOOPS |CPUFREQ_NEED_INITIAL_FREQ_CHECK | +CPUFREQ_IS_COOLING_DEV , .verify = cpufreq_generic_frequency_table_verify, .target_index = tegra194_cpufreq_set_target, .get = tegra194_get_speed,
Signature · 1 line
2.25.1
Quoted 17 lines · Jon Hunter
From: Yi-Wei Wang <[email protected]>
Populate the flag
CPUFREQ_IS_COOLING_DEVfor 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 <[email protected]>Signed-off-by Jon Hunter <[email protected]>--- drivers/cpufreq/tegra194-cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/cpufreq/tegra194-cpufreq.c +0
-0
drivers/cpufreq/tegra194-cpufreq.c static int tegra194_cpufreq_set_target(struct cpufreq_policy *policy, · line 418
Quoted 9 lines
drivers/cpufreq/tegra194-cpufreq.c +2
-1@@ -411,7 +411,8 @@ static int tegra194_cpufreq_set_target(struct cpufreq_policy *policy,static struct cpufreq_driver tegra194_cpufreq_driver = { .name ="tegra194" , - .flags =CPUFREQ_CONST_LOOPS |CPUFREQ_NEED_INITIAL_FREQ_CHECK , + .flags =CPUFREQ_CONST_LOOPS |CPUFREQ_NEED_INITIAL_FREQ_CHECK | +CPUFREQ_IS_COOLING_DEV , .verify = cpufreq_generic_frequency_table_verify, .target_index = tegra194_cpufreq_set_target, .get = tegra194_get_speed,
Applied. Thanks.
Signature · 1 line
viresh