From: Park Bumgyu Date: Thu, 23 Aug 2018 06:51:04 +0000 (+0900) Subject: [RAMEN9610-9421][COMMON] cpufreq: acme: request prefer perf at cpufreq_min_limit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=224b384cf46754921c2d9d47048ffb7220692821;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-9421][COMMON] cpufreq: acme: request prefer perf at cpufreq_min_limit Change-Id: I6b78a333c52708b59bf84c664795e370d9d8de7c Signed-off-by: Park Bumgyu --- diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 97ee5d550f36..ee1ec9f3088f 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -884,6 +885,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; } @@ -904,6 +906,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; } @@ -1463,6 +1467,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 */