From: Park Bumgyu Date: Thu, 23 Aug 2018 06:35:16 +0000 (+0900) Subject: [RAMEN9610-9421][COMMON] cpufreq: acme: remove code related with HMP boost. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d958fbb57b8f3fe0f79d0a3ba641078ffab526fa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-9421][COMMON] cpufreq: acme: remove code related with HMP boost. Change-Id: I87bda7bd22f54fadefac19582340d9d3e1a09ca5 Signed-off-by: Park Bumgyu --- diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index e9339354afc9..a9fc77e4fbe3 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -829,16 +829,6 @@ static ssize_t show_cpufreq_min_limit(struct kobject *kobj, list_for_each_entry_reverse(domain, &domains, list) { scale++; -#ifdef CONFIG_SCHED_HMP - /* - * In HMP architecture, last domain is big. - * If HMP boost is not activated, PM QoS value of - * big is not shown. - */ - if (domain == last_domain() && !get_hmp_boost()) - continue; -#endif - /* get value of minimum PM QoS */ pm_qos_min = pm_qos_request(domain->pm_qos_min_class); if (pm_qos_min > 0) { @@ -865,22 +855,6 @@ static ssize_t show_cpufreq_min_limit(struct kobject *kobj, first_domain()->min_freq >> (scale * SCALE_SIZE)); } -#ifdef CONFIG_SCHED_HMP -static bool hmp_boost; -static void control_hmp_boost(bool enable) -{ - if (hmp_boost && !enable) { - set_hmp_boost(0); - hmp_boost = false; - } else if (!hmp_boost && enable) { - set_hmp_boost(1); - hmp_boost = true; - } -} -#else -static inline void control_hmp_boost(bool enable) {} -#endif - static ssize_t store_cpufreq_min_limit(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) @@ -909,7 +883,6 @@ 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); - control_hmp_boost(false); continue; } @@ -927,15 +900,6 @@ static ssize_t store_cpufreq_min_limit(struct kobject *kobj, continue; } - /* - * In HMP, last domain is big. Input frequency is in range - * of big, it enables HMP boost. - */ - if (domain == last_domain()) - control_hmp_boost(true); - else - control_hmp_boost(false); - freq = min(freq, domain->max_freq); pm_qos_update_request(&domain->user_min_qos_req, freq); @@ -990,15 +954,6 @@ static ssize_t store_cpufreq_min_limit_wo_boost(struct kobject *kobj, continue; } -#ifdef CONFIG_SCHED_HMP - /* - * If hmp_boost was already activated by cpufreq_min_limit, - * print a message to avoid confusing who activated hmp_boost. - */ - if (domain == last_domain() && hmp_boost) - pr_info("HMP boost was already activated by cpufreq_min_limit node"); -#endif - freq = min(freq, domain->max_freq); pm_qos_update_request(&domain->user_min_qos_wo_boost_req, freq);