[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1516721671-16360-8-git-send-email-daniel.lezcano@linaro.org>
Date: Tue, 23 Jan 2018 16:34:30 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: edubezval@...il.com
Cc: kevin.wangtao@...aro.org, leo.yan@...aro.org,
vincent.guittot@...aro.org, amit.kachhap@...il.com,
viresh.kumar@...aro.org, linux-kernel@...r.kernel.org,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
linux-pm@...r.kernel.org (open list:CPUIDLE DRIVERS)
Subject: [PATCH 7/8] cpuidle/drivers/cpuidle-arm: Register the cooling device
Register the ARM generic cpuidle driver as a cooling device.
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
---
drivers/cpuidle/cpuidle-arm.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/cpuidle/cpuidle-arm.c b/drivers/cpuidle/cpuidle-arm.c
index ddee1b6..c100915 100644
--- a/drivers/cpuidle/cpuidle-arm.c
+++ b/drivers/cpuidle/cpuidle-arm.c
@@ -11,6 +11,7 @@
#define pr_fmt(fmt) "CPUidle arm: " fmt
+#include <linux/cpu_cooling.h>
#include <linux/cpuidle.h>
#include <linux/cpumask.h>
#include <linux/cpu_pm.h>
@@ -172,6 +173,10 @@ static int __init arm_idle_init(void)
goto out_fail;
}
+ ret = cpuidle_cooling_register();
+ if (ret)
+ pr_warn("Failed to register the cpuidle cooling device\n");
+
return 0;
out_fail:
--
2.7.4
Powered by blists - more mailing lists