cpufreq: acme: add ready/exit callback
authorPark Bumgyu <bumgyu.park@samsung.com>
Wed, 14 Mar 2018 06:04:43 +0000 (15:04 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:41 +0000 (17:30 +0900)
ready/exit callback will be used by thermal.

Change-Id: Ieab321d3d49c25a2772569b0f7c7cb701e0acda0
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
drivers/cpufreq/exynos-acme.c

index 6648377e51c4b071236803f67fac4c4ef18d66b7..bcc14dbb30a5e95e0c6e17112bde96b929c1e6f8 100644 (file)
@@ -441,6 +441,15 @@ static int exynos_cpufreq_resume(struct cpufreq_policy *policy)
        return __exynos_cpufreq_resume(domain);
 }
 
+static void exynos_cpufreq_ready(struct cpufreq_policy *policy)
+{
+}
+
+static int exynos_cpufreq_exit(struct cpufreq_policy *policy)
+{
+       return 0;
+}
+
 static int exynos_cpufreq_pm_notifier(struct notifier_block *notifier,
                                       unsigned long pm_event, void *v)
 {
@@ -474,6 +483,8 @@ static struct cpufreq_driver exynos_driver = {
        .get            = exynos_cpufreq_get,
        .suspend        = exynos_cpufreq_suspend,
        .resume         = exynos_cpufreq_resume,
+       .ready          = exynos_cpufreq_ready,
+       .exit           = exynos_cpufreq_exit,
        .attr           = cpufreq_generic_attr,
 };