[COMMON] cpufreq: acme: add need-awake info for domain
authorSoohyun Kim <soohyuni.kim@samsung.com>
Thu, 29 Mar 2018 04:07:14 +0000 (13:07 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:33:18 +0000 (17:33 +0900)
Change-Id: I67c8935ab0b9f9e55a25489dded617572a5cd44c
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
drivers/cpufreq/exynos-acme.c
drivers/cpufreq/exynos-acme.h

index a8ef02ecb0bc8bdd0132d6c30002ee4c7f9ff256..354cb3acfd95ac2909cba4f10d87ce7b6b83a0f1 100644 (file)
@@ -1485,6 +1485,9 @@ static __init int init_domain(struct exynos_cpufreq_domain *domain,
        if (!of_property_read_u32(dn, "user-default-qos", &val))
                domain->user_default_qos = val;
 
+       if (of_property_read_bool(dn, "need-awake"))
+               domain->need_awake = true;
+
        domain->boot_freq = cal_dfs_get_boot_freq(domain->cal_id);
        domain->resume_freq = cal_dfs_get_resume_freq(domain->cal_id);
 
index 1d15e7a3dbef0ea0ffe83616f3f4a0fd49f6727f..d4e1e5ee307f2a47ba13b198abb061062abed751 100644 (file)
@@ -63,6 +63,8 @@ struct exynos_cpufreq_domain {
        /* list head of DVFS Manager constraints */
        struct list_head                dm_list;
 
+       bool                            need_awake;
+
        struct thermal_cooling_device *cdev;
 };