]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
cpufreq: Rename cpufreq_can_do_remote_dvfs()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 22 May 2018 10:01:30 +0000 (15:31 +0530)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:47:27 +0000 (23:47 -0500)
BugLink: https://bugs.launchpad.net/bugs/1859712
This routine checks if the CPU running this code belongs to the policy
of the target CPU or if not, can it do remote DVFS for it remotely. But
the current name of it implies as if it is only about doing remote
updates.

Rename it to make it more relevant.

Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 036399782bf51dafb932b680b260936b2b5f8dd6)
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/cpufreq/cpufreq_governor.c
include/linux/cpufreq.h
kernel/sched/cpufreq_schedutil.c

index 146237aab395d3b2e9666fe9c07f73dc66d556d2..69fc5cf4782fb96ade4d06ccebade04416bc1746 100644 (file)
@@ -276,7 +276,7 @@ static void dbs_update_util_handler(struct update_util_data *data, u64 time,
        struct policy_dbs_info *policy_dbs = cdbs->policy_dbs;
        u64 delta_ns, lst;
 
-       if (!cpufreq_can_do_remote_dvfs(policy_dbs->policy))
+       if (!cpufreq_this_cpu_can_update(policy_dbs->policy))
                return;
 
        /*
index 4ac964f43b5d00369edd80d03929b5c29a71a8e9..d107504ed6886abae0e9b352655dcb506a42e931 100644 (file)
@@ -563,7 +563,7 @@ struct governor_attr {
                         size_t count);
 };
 
-static inline bool cpufreq_can_do_remote_dvfs(struct cpufreq_policy *policy)
+static inline bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy)
 {
        /*
         * Allow remote callbacks if:
index f8c45d30ec6d0d6bb7a39b561f0fbc6d0cbcc9ff..445ba3f1ae9796a5d386323518486e3ccdf7e0ba 100644 (file)
@@ -95,7 +95,7 @@ static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time)
         * schedule the kthread.
         */
        if (sg_policy->policy->fast_switch_enabled &&
-           !cpufreq_can_do_remote_dvfs(sg_policy->policy))
+           !cpufreq_this_cpu_can_update(sg_policy->policy))
                return false;
 
        if (sg_policy->work_in_progress)