[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:09 +0000 (20:23 +0300)
Change-Id: I87bda7bd22f54fadefac19582340d9d3e1a09ca5
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
drivers/cpufreq/exynos-acme.c

index e9339354afc9e5c08baf929862aec68e802411f3..a9fc77e4fbe388ec0c7547b96b3804e1462e59d1 100644 (file)
@@ -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);