From nobody Fri Sep 12 03:11:10 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24FFDC0015E for ; Wed, 9 Aug 2023 19:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233337AbjHITMk (ORCPT ); Wed, 9 Aug 2023 15:12:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231851AbjHITMc (ORCPT ); Wed, 9 Aug 2023 15:12:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DF526AF; Wed, 9 Aug 2023 12:12:21 -0700 (PDT) Date: Wed, 09 Aug 2023 19:12:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691608339; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AL5tloo4gcCakXKY0xrTL05hpNQrhljrtfWZbb8Ohaw=; b=pjAWnMGmmzIKYDOFXAfOTT0R6KFbeKsHRQv8dGLEqmx45Hx5wUeKuNmu/Bb1UvlD/kdVYZ uGYsos75iVwr1AjNiFkMxY/djRpT6oCGPZukqyFJUGPaPthB43arWD43/4hVfVNQjAuBQ4 mF3NCpfPWfMsv3kErtsBM1HjJEsFY815DpU+3P3ik5wWzOOzwAk7+IyQH2Jto2/ZuNN1bj cogeEdAKm1tsRJgo8OfepxOPpcPZeC5xU7W+SXKN+LGBAE6/jmaLhZRfJCZXgsooJHHFrI y28q0D98IKrxFO9hxGc9t5YUgdajPiyfN0zlENEbbV8ZqT27oHbEDDIDe+yXDA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691608339; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AL5tloo4gcCakXKY0xrTL05hpNQrhljrtfWZbb8Ohaw=; b=2MzixbH/R+vaZ03KkecjXHRX9IPUBPj40688lwDXl+yecMWsnOVtCf7G/OrCfgR5qZFRPb hH24vnJ49mH4wgBQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/apic/32: Remove bigsmp_cpu_present_to_apicid() Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169160833914.27769.16527369886376883585.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/apic branch of tip: Commit-ID: 4114e1686fdc350e4191ca670710b3fa9bd10947 Gitweb: https://git.kernel.org/tip/4114e1686fdc350e4191ca670710b3fa9= bd10947 Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:56 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 11:58:25 -07:00 x86/apic/32: Remove bigsmp_cpu_present_to_apicid() It's a copy of default_cpu_present_to_apicid() with the omission of the actual check whether the CPU is present. This APIC callback should die completely, but the XEN APIC implementation does something different which needs to be addressed first. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- arch/x86/kernel/apic/bigsmp_32.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp= _32.c index a26cb46..aba8ce1 100644 --- a/arch/x86/kernel/apic/bigsmp_32.c +++ b/arch/x86/kernel/apic/bigsmp_32.c @@ -43,14 +43,6 @@ static void bigsmp_setup_apic_routing(void) nr_ioapics); } =20 -static int bigsmp_cpu_present_to_apicid(int mps_cpu) -{ - if (mps_cpu < nr_cpu_ids) - return (int) per_cpu(x86_cpu_to_apicid, mps_cpu); - - return BAD_APICID; -} - static void bigsmp_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask= _t *retmap) { /* For clustered we don't have a good way to do this yet - hack */ @@ -119,7 +111,7 @@ static struct apic apic_bigsmp __ro_after_init =3D { .init_apic_ldr =3D bigsmp_init_apic_ldr, .ioapic_phys_id_map =3D bigsmp_ioapic_phys_id_map, .setup_apic_routing =3D bigsmp_setup_apic_routing, - .cpu_present_to_apicid =3D bigsmp_cpu_present_to_apicid, + .cpu_present_to_apicid =3D default_cpu_present_to_apicid, .apicid_to_cpu_present =3D physid_set_mask_of_physid, .phys_pkg_id =3D bigsmp_phys_pkg_id,