From nobody Sat Oct 4 09:40:52 2025 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B58C42848A4; Tue, 19 Aug 2025 07:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755588611; cv=none; b=DMyAJdWYLClZspVkpNiMhs+mN6sQHKSR14DWX4/W34FYk+CfBn/gV+ON0WjFgs8tCrVX3y0idt0B37UVMJl52ZHrt5PKQt+k4XFDwZmwKPHrsb/XtsXgVUaAjrkOfLf30Abz5fruINr4+ttHu6Q5UmAYNQJGmwiTy3eIo0MNPyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755588611; c=relaxed/simple; bh=XQ4eBg80a96FV2MZDPzFeGhY4E98depsJi9EaPWmjxM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=s9+6QGCq9hh/bi5S3SVaWN+NHeJeKv3s2gFaE+czo8l6s6Zy7VPDaaMZR9KNqDXV218xFm+oUjiL/YoS2uULO+foOCo6NwvQY0hGcJM1YlgUHeFh9NKpzTjpJFv96IW30XDkgIP3g7Ii6qVgrXF5hxnTrzvDqGRRDy/sMBXxIho= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4c5h383K2cz13Mgm; Tue, 19 Aug 2025 15:26:28 +0800 (CST) Received: from kwepemh100008.china.huawei.com (unknown [7.202.181.93]) by mail.maildlp.com (Postfix) with ESMTPS id 4F6A6140275; Tue, 19 Aug 2025 15:30:00 +0800 (CST) Received: from localhost.localdomain (10.50.165.33) by kwepemh100008.china.huawei.com (7.202.181.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 19 Aug 2025 15:29:59 +0800 From: Lifeng Zheng To: , , , , , CC: , , , , , , , , , , , , Subject: [PATCH v5 1/3] arm64: topology: Set scale freq source only for the CPUs that have not been set before Date: Tue, 19 Aug 2025 15:29:29 +0800 Message-ID: <20250819072931.1647431-2-zhenglifeng1@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20250819072931.1647431-1-zhenglifeng1@huawei.com> References: <20250819072931.1647431-1-zhenglifeng1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemh100008.china.huawei.com (7.202.181.93) Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Beata Michalska Reviewed-by: Jie Zhan --- arch/arm64/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c index 5d07ee85bdae..9317a618bb87 100644 --- a/arch/arm64/kernel/topology.c +++ b/arch/arm64/kernel/topology.c @@ -373,7 +373,7 @@ static void amu_fie_setup(const struct cpumask *cpus) =20 cpumask_or(amu_fie_cpus, amu_fie_cpus, cpus); =20 - topology_set_scale_freq_source(&amu_sfd, amu_fie_cpus); + topology_set_scale_freq_source(&amu_sfd, cpus); =20 pr_debug("CPUs[%*pbl]: counters will be used for FIE.", cpumask_pr_args(cpus)); --=20 2.33.0