From nobody Sat Oct 4 19:18:38 2025 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 CB69926CE06; Thu, 14 Aug 2025 07:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755156572; cv=none; b=gpsO7df9o67T1D8heta4vQdgqr0pO9+gMkWasdPGtuV8aGUl+wrKZcqB62Xw63R3e8CdoR/MYq46RZA9JJ+zKEybrxtsvOBUYdrQ2mankoLWPu/pKvA/x6CJyQj5lYVCDpAfjAz6cb7HC+eSWg4Qy7281+TudhvyMzWfJXxdA6c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755156572; c=relaxed/simple; bh=XQ4eBg80a96FV2MZDPzFeGhY4E98depsJi9EaPWmjxM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ft+p/z/mJ+dLKcoPT1SBJHTCpv4rTiRaGpuCwzN7+yI9TslhiDtPsOeGdu4ErN6Lk5vmKDltyOX6TVLwusa9rZsuS4k5FRdoPgExheCHsIuRNEBYMT4NxNCOZI1Ng97ll9EnQIn3wtDsFMz9tWqPv6G4fE7+y9OfIe7znwf3PJk= 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.191 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.163.44]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4c2cHj12wdz2Dc1W; Thu, 14 Aug 2025 15:26:41 +0800 (CST) Received: from kwepemh100008.china.huawei.com (unknown [7.202.181.93]) by mail.maildlp.com (Postfix) with ESMTPS id 00CAA140293; Thu, 14 Aug 2025 15:29:22 +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; Thu, 14 Aug 2025 15:29:21 +0800 From: Lifeng Zheng To: , , , , , CC: , , , , , , , , , , , Subject: [PATCH v4 1/3] arm64: topology: Set scale freq source only for the CPUs that have not been set before Date: Thu, 14 Aug 2025 15:28:51 +0800 Message-ID: <20250814072853.3426386-2-zhenglifeng1@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20250814072853.3426386-1-zhenglifeng1@huawei.com> References: <20250814072853.3426386-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: kwepems200001.china.huawei.com (7.221.188.67) 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 --- 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