diff options
author | Sumit Gupta <sumitg@nvidia.com> | 2023-10-09 11:24:23 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2023-10-10 08:36:03 +0300 |
commit | c12f0d0ffade589599a43b0d0f0965579ca80f76 (patch) | |
tree | 42ac322632a51127eb79272513e69be8a1b403c7 /drivers/cpufreq/tegra194-cpufreq.c | |
parent | a60a556788752a5696960ed11409a552b79e68e8 (diff) | |
download | linux-c12f0d0ffade589599a43b0d0f0965579ca80f76.tar.xz |
cpufreq: tegra194: remove redundant AND with cpu_online_mask
Remove redundant 'AND' with cpu_online_mask as the policy->cpus always
contains only the currently online CPUs.
Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/lkml/20231003050019.a6mcchw2o2z2wkrh@vireshk-i7/
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
[ Viresh: Fix rebase conflict ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/tegra194-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/tegra194-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/tegra194-cpufreq.c b/drivers/cpufreq/tegra194-cpufreq.c index 9dae6195e0e7..59865ea455a8 100644 --- a/drivers/cpufreq/tegra194-cpufreq.c +++ b/drivers/cpufreq/tegra194-cpufreq.c @@ -135,7 +135,7 @@ static void tegra234_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) struct tegra194_cpufreq_data *data = cpufreq_get_driver_data(); u32 cpu; - for_each_cpu_and(cpu, policy->cpus, cpu_online_mask) + for_each_cpu(cpu, policy->cpus) writel(ndiv, data->cpu_data[cpu].freq_core_reg); } |