From 9a2949f3f237551648d8b9801b4ab49c42738759 Mon Sep 17 00:00:00 2001 From: Soohyun Kim Date: Thu, 29 Mar 2018 13:07:14 +0900 Subject: [PATCH] [COMMON] cpufreq: acme: add need-awake info for domain Change-Id: I67c8935ab0b9f9e55a25489dded617572a5cd44c Signed-off-by: Soohyun Kim --- drivers/cpufreq/exynos-acme.c | 3 +++ drivers/cpufreq/exynos-acme.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index a8ef02ecb0bc..354cb3acfd95 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -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); diff --git a/drivers/cpufreq/exynos-acme.h b/drivers/cpufreq/exynos-acme.h index 1d15e7a3dbef..d4e1e5ee307f 100644 --- a/drivers/cpufreq/exynos-acme.h +++ b/drivers/cpufreq/exynos-acme.h @@ -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; }; -- 2.20.1