From nobody Thu Apr 9 16:37:36 2026 Received: from mailgw2.hygon.cn (unknown [101.204.27.37]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5743633A712 for ; Tue, 3 Mar 2026 12:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.204.27.37 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772540518; cv=none; b=Pld/irMDQvQriXofFfsmRzj1l6m49YrnNY2DLC6NTNuFJQBW8NN/BjwbGNSH8d1jdFSl3xxYmm4Q1cNunZnTyVzHuJv/vIC3BQvSjxrMUGNEt5BZbjuvg+u/ol6FELzJscaSOcdhvfnIxL6pUxZVVFU7wm5eo//TMTdCVRhdooY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772540518; c=relaxed/simple; bh=Akk9QnUKDa94FaGMvyCu9NYSWbPZ4YMqY5B1gvllOWo=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=c2rYODdMEySfdcXHG1KjXykbs6LRUBEIdQEuQE6qBc2hoA9SNjmH8v1eS4xPY2Rt3uqLbkpK2YWWdHCOomylG6i9OYROyq0qLwOPmoO0FE0MiLj4J2gR5d18F+qDd3vAtT4gObHdsWUfsQbmNDpasUEdsZydzGyp6aaFEDNdf6c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hygon.cn; spf=pass smtp.mailfrom=hygon.cn; arc=none smtp.client-ip=101.204.27.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hygon.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hygon.cn Received: from maildlp1.hygon.cn (unknown [127.0.0.1]) by mailgw2.hygon.cn (Postfix) with ESMTP id 4fQFK63RR2z1YQpmy; Tue, 3 Mar 2026 20:21:30 +0800 (CST) Received: from maildlp1.hygon.cn (unknown [172.23.18.60]) by mailgw2.hygon.cn (Postfix) with ESMTP id 4fQFK54D5Sz1YQpmy; Tue, 3 Mar 2026 20:21:29 +0800 (CST) Received: from cncheex04.Hygon.cn (unknown [172.23.18.114]) by maildlp1.hygon.cn (Postfix) with ESMTPS id 779DA4B7C; Tue, 3 Mar 2026 20:21:25 +0800 (CST) Received: from BJ-HV00147.Hygon.cn (172.18.22.73) by cncheex04.Hygon.cn (172.23.18.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Tue, 3 Mar 2026 20:21:28 +0800 From: To: , , , , , , , , CC: , wangguangju Subject: [PATCH] x86/apic/savic: Use for_each_online_cpu() instead of for_each_cpu() Date: Tue, 3 Mar 2026 20:21:13 +0800 Message-ID: <20260303122113.241684-1-wangguangju@hygon.cn> X-Mailer: git-send-email 2.43.0 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: cncheex05.Hygon.cn (172.23.18.115) To cncheex04.Hygon.cn (172.23.18.114) Content-Type: text/plain; charset="utf-8" From: wangguangju Replace the opencoded for_each_cpu(cpu, cpu_online_mask) loop with the more readable and equivalent for_each_online_cpu(cpu) macro. Signed-off-by: wangguangju --- arch/x86/kernel/apic/x2apic_savic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/apic/x2apic_savic.c b/arch/x86/kernel/apic/x2a= pic_savic.c index dbc5678bc3b6..71c2d9ee7d99 100644 --- a/arch/x86/kernel/apic/x2apic_savic.c +++ b/arch/x86/kernel/apic/x2apic_savic.c @@ -149,7 +149,7 @@ static void send_ipi_allbut(unsigned int vector, bool n= mi) =20 src_cpu =3D raw_smp_processor_id(); =20 - for_each_cpu(cpu, cpu_online_mask) { + for_each_online_cpu(cpu) { if (cpu =3D=3D src_cpu) continue; send_ipi_dest(cpu, vector, nmi); --=20 2.43.0