Skip to content

Commit 0363997

Browse files
vireshkrafaeljw
authored andcommitted
cpufreq: Rename cpufreq_can_do_remote_dvfs()
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>
1 parent fd7d528 commit 0363997

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/cpufreq/cpufreq_governor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static void dbs_update_util_handler(struct update_util_data *data, u64 time,
278278
struct policy_dbs_info *policy_dbs = cdbs->policy_dbs;
279279
u64 delta_ns, lst;
280280

281-
if (!cpufreq_can_do_remote_dvfs(policy_dbs->policy))
281+
if (!cpufreq_this_cpu_can_update(policy_dbs->policy))
282282
return;
283283

284284
/*

include/linux/cpufreq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ struct governor_attr {
571571
size_t count);
572572
};
573573

574-
static inline bool cpufreq_can_do_remote_dvfs(struct cpufreq_policy *policy)
574+
static inline bool cpufreq_this_cpu_can_update(struct cpufreq_policy *policy)
575575
{
576576
/*
577577
* Allow remote callbacks if:

kernel/sched/cpufreq_schedutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time)
8989
* schedule the kthread.
9090
*/
9191
if (sg_policy->policy->fast_switch_enabled &&
92-
!cpufreq_can_do_remote_dvfs(sg_policy->policy))
92+
!cpufreq_this_cpu_can_update(sg_policy->policy))
9393
return false;
9494

9595
if (sg_policy->work_in_progress)

0 commit comments

Comments
 (0)