[RAMEN9610-9421][COMMON] cpufreq: acme: remove code related with HMP boost.
authorPark Bumgyu <bumgyu.park@samsung.com>
Thu, 23 Aug 2018 06:35:16 +0000 (15:35 +0900)
committerhskang <hs1218.kang@samsung.com>
Thu, 13 Dec 2018 11:41:52 +0000 (20:41 +0900)
Change-Id: I87bda7bd22f54fadefac19582340d9d3e1a09ca5
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
drivers/cpufreq/exynos-acme.c

index ef8d7edce84062fccb24f5be823262b61e96a719..97ee5d550f365d87d40d7efb49da0818de13a45f 100644 (file)
@@ -830,16 +830,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) {
@@ -866,22 +856,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)
@@ -910,7 +884,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;
                }
 
@@ -928,15 +901,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);
 
@@ -991,15 +955,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);