]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: topology: Skip already covered CPUs when setting freq source
authorLifeng Zheng <zhenglifeng1@huawei.com>
Wed, 19 Nov 2025 08:13:54 +0000 (16:13 +0800)
committerWill Deacon <will@kernel.org>
Mon, 5 Jan 2026 21:11:48 +0000 (21:11 +0000)
The scale freq source of the CPUs in 'amu_fie_cpus' mask are already set to
AMU tick before, so in amu_fie_setup(), only the CPUs in the 'cpus' mask
should be set.

Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Reviewed-by: Beata Michalska <beata.michalska@arm.com>
Reviewed-by: Jie Zhan <zhanjie9@hisilicon.com>
Acked-by: Beata Michalska <beata.michalska@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/topology.c

index 5d24dc53799b7687d4aea5c5d0f49e7a5580be28..cf9bb761af3a260c49b5f5ea4caafef0a8fcc835 100644 (file)
@@ -272,7 +272,7 @@ static void amu_fie_setup(const struct cpumask *cpus)
 
        cpumask_or(amu_fie_cpus, amu_fie_cpus, cpus);
 
-       topology_set_scale_freq_source(&amu_sfd, amu_fie_cpus);
+       topology_set_scale_freq_source(&amu_sfd, cpus);
 
        pr_debug("CPUs[%*pbl]: counters will be used for FIE.",
                 cpumask_pr_args(cpus));