[PATCH v1 6/6] cpufreq: mediatek-hw: Add cooling dev flag

Hector Yuan hector.yuan at mediatek.com
Fri Oct 23 04:24:53 EDT 2020


From: "Hector.Yuan" <hector.yuan at mediatek.com>

Add cooling device flag for thermal throttle

Signed-off-by: Hector.Yuan <hector.yuan at mediatek.com>
---
 drivers/cpufreq/mediatek-cpufreq-hw.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c b/drivers/cpufreq/mediatek-cpufreq-hw.c
index 15fba20..665f220f 100644
--- a/drivers/cpufreq/mediatek-cpufreq-hw.c
+++ b/drivers/cpufreq/mediatek-cpufreq-hw.c
@@ -165,7 +165,8 @@ static int mtk_cpufreq_hw_cpu_exit(struct cpufreq_policy *policy)
 
 static struct cpufreq_driver cpufreq_mtk_hw_driver = {
 	.flags		= CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK |
-			  CPUFREQ_HAVE_GOVERNOR_PER_POLICY,
+			  CPUFREQ_HAVE_GOVERNOR_PER_POLICY |
+			  CPUFREQ_IS_COOLING_DEV,
 	.verify		= cpufreq_generic_frequency_table_verify,
 	.target_index	= mtk_cpufreq_hw_target_index,
 	.get		= mtk_cpufreq_hw_get,
-- 
1.7.9.5


More information about the linux-arm-kernel mailing list