From 0e3bd4b54d588b1b152a798a7410a974c8ac9b26 Mon Sep 17 00:00:00 2001 From: Park Bumgyu Date: Thu, 23 Aug 2018 15:51:04 +0900 Subject: [PATCH] [RAMEN9610-9421][COMMON] cpufreq: acme: request prefer perf at cpufreq_min_limit Change-Id: I6b78a333c52708b59bf84c664795e370d9d8de7c Signed-off-by: Park Bumgyu --- drivers/cpufreq/exynos-acme.c | 7 +++++++ drivers/cpufreq/exynos-acme.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 0ef8cf2b71f6..d2d57de2bc63 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -901,6 +902,7 @@ static ssize_t store_cpufreq_min_limit(struct kobject *kobj, /* Clear all constraint by cpufreq_min_limit */ if (input < 0) { pm_qos_update_request(&domain->user_min_qos_req, 0); + request_kernel_prefer_perf(STUNE_TOPAPP, 0); continue; } @@ -921,6 +923,8 @@ static ssize_t store_cpufreq_min_limit(struct kobject *kobj, freq = min(freq, domain->max_freq); pm_qos_update_request(&domain->user_min_qos_req, freq); + request_kernel_prefer_perf(STUNE_TOPAPP, domain->user_boost); + set_max = true; } @@ -1480,6 +1484,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_u32(dn, "user-boost", &val)) + domain->user_boost = val; + if (of_property_read_bool(dn, "need-awake")) domain->need_awake = true; diff --git a/drivers/cpufreq/exynos-acme.h b/drivers/cpufreq/exynos-acme.h index 7be15e6c9add..dcd2ae8afe85 100644 --- a/drivers/cpufreq/exynos-acme.h +++ b/drivers/cpufreq/exynos-acme.h @@ -68,6 +68,7 @@ struct exynos_cpufreq_domain { struct notifier_block pm_qos_max_notifier; /* for sysfs */ + int user_boost; unsigned int user_default_qos; /* freq boost */ -- 2.20.1