From mboxrd@z Thu Jan 1 00:00:00 1970 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 AFDEAC0015E for ; Tue, 1 Aug 2023 10:48:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231210AbjHAKs4 (ORCPT ); Tue, 1 Aug 2023 06:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234105AbjHAKr4 (ORCPT ); Tue, 1 Aug 2023 06:47:56 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C3332D48 for ; Tue, 1 Aug 2023 03:47:13 -0700 (PDT) Message-ID: <20230801103816.475813693@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690886831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=1bhj7lWCPL93WVUL7hHxugShRN0AQvpospwY1BweZqQ=; b=323dqJw90MiESEEiWlZuY/lQHbiHlZkTw4EAoFjoiDcnIQkGOO3bDgRmwOCxdT2Kub8xul /NYoCzGNEJ159pPQlCwcp5JDRE9wZQkZ7j7583uvwFgeo73eMTHwQRQE2MoAAhKsT6Yrm6 asfGK/R892SxHi/deZs1/Nk2Tu1UJNGUrS3P1KOLlb6w0BEWOwnd+O7cV0FhPTdV1q8wGl K3IHwfFzMMnoI0awOaLeteUOCK/v77fWRamso537ga16gW6yfi9tB+9Aid0e4lo+ZHbOrd LjtJ1AYGP0JsNjZeSjZL7hdVOuuZoFjYT6l1itXVll3nBhyYqqXr7cCHBc6A7g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690886831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=1bhj7lWCPL93WVUL7hHxugShRN0AQvpospwY1BweZqQ=; b=QKw1Dj1sUj9ALxvFOjjUQpyEL95kTcR80QNGOR+uLyfpv6wmRTwsjhPTrRrqOqa5e6MIa0 CkX9+8wBotATmlCg== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Juergen Gross , Michael Kelley , Peter Keresztes Schmidt , "Peter Zijlstra (Intel)" Subject: [patch V3 24/60] x86/apic: Mop up early_per_cpu() abuse References: <20230801103042.936020332@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 1 Aug 2023 12:47:10 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UV X2APIC uses the per CPU variable from: native_smp_prepare_cpus() uv_system_init() uv_system_init_hub() which is long after the per CPU areas have been set up. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) --- arch/x86/kernel/apic/x2apic_uv_x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -1843,7 +1843,7 @@ static void __init uv_system_init_hub(vo /* Initialize per CPU info: */ for_each_possible_cpu(cpu) { - int apicid = early_per_cpu(x86_cpu_to_apicid, cpu); + int apicid = per_cpu(x86_cpu_to_apicid, cpu); unsigned short bid; unsigned short pnode;