summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorValentin Schneider <valentin.schneider@arm.com>2020-09-01 21:55:48 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-09-18 19:11:04 +0200
commitecddc3a0d5d752071c627aa1a1d4d7b529ddae67 (patch)
tree6f78161e6532d039b17d304046e4180ab7831830 /arch
parent874f635310648a5adcedbd7e02ea0555cfa1da56 (diff)
downloadlinux-stable-ecddc3a0d5d752071c627aa1a1d4d7b529ddae67.tar.gz
linux-stable-ecddc3a0d5d752071c627aa1a1d4d7b529ddae67.tar.bz2
linux-stable-ecddc3a0d5d752071c627aa1a1d4d7b529ddae67.zip
arch_topology, cpufreq: constify arch_* cpumasks
The passed cpumask arguments to arch_set_freq_scale() and arch_freq_counters_available() are only iterated over, so reflect this in the prototype. This also allows to pass system cpumasks like cpu_online_mask without getting a warning. Signed-off-by: Valentin Schneider <valentin.schneider@arm.com> Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/kernel/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c
index 0801a0f3c156..9a9f2b8dedf5 100644
--- a/arch/arm64/kernel/topology.c
+++ b/arch/arm64/kernel/topology.c
@@ -253,7 +253,7 @@ free_valid_mask:
}
late_initcall_sync(init_amu_fie);
-bool arch_freq_counters_available(struct cpumask *cpus)
+bool arch_freq_counters_available(const struct cpumask *cpus)
{
return amu_freq_invariant() &&
cpumask_subset(cpus, amu_fie_cpus);