From nobody Sun Oct 5 12:34:07 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 A27B02741D6; Tue, 5 Aug 2025 09:33:57 +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=1754386439; cv=none; b=Zxzm1M9pCokbxCTsZ2YNLJc9QiBYuoV1sBw2eWBIjgbazfzwDy/r0QMjgjKquaUrEiCC5vghYL9YAcLWdDMHe61y4JS2N4bNV3rV5rZagFOLQ2l/KL5h7+rquRoKhipDpNBqUlQNKCdmAdoI+uErWQDMvOoI7SixO9uDtQSx7L4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754386439; c=relaxed/simple; bh=XQ4eBg80a96FV2MZDPzFeGhY4E98depsJi9EaPWmjxM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aRQ+Ms05XcFYD1zdKGgB5Gcyt723x3VKl9Z6k7JT/0ki1jj75LILSUvtOEmxGLNz30HQruhzsYC49md4I3pB81T3l886TXCiE0qPWuvGIZYdVRAAVpzv/Elyf1gVePipAzCdG1zGswoK6UqUhLsyuD3UxGGNld+areFZnkVoItk= 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.162.254]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4bx7Sx0lZpz13Myh; Tue, 5 Aug 2025 17:30:41 +0800 (CST) Received: from kwepemh100008.china.huawei.com (unknown [7.202.181.93]) by mail.maildlp.com (Postfix) with ESMTPS id E4994180483; Tue, 5 Aug 2025 17:33:54 +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, 5 Aug 2025 17:33:54 +0800 From: Lifeng Zheng To: , , , , , CC: , , , , , , , , , , , Subject: [PATCH v3 1/3] arm64: topology: Set scale freq source only for the CPUs that have not been set before Date: Tue, 5 Aug 2025 17:33:28 +0800 Message-ID: <20250805093330.3715444-2-zhenglifeng1@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20250805093330.3715444-1-zhenglifeng1@huawei.com> References: <20250805093330.3715444-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