From nobody Sun Feb 8 23:09:05 2026 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 B405EC001DB for ; Mon, 7 Aug 2023 13:53:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234567AbjHGNxb (ORCPT ); Mon, 7 Aug 2023 09:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234537AbjHGNwz (ORCPT ); Mon, 7 Aug 2023 09:52:55 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72EE319B7 for ; Mon, 7 Aug 2023 06:52:51 -0700 (PDT) Message-ID: <20230807135026.958541204@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691416369; 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=lXvAKFXjZsZtpNvVsuWPTJGbTaymXF55DtvrpybYokk=; b=l1PZ8I8giV3b+mf4JVnWGkSVb1DnTyMcH4HCqJUibxXXnHCf2E0WsmrRnB+zpXKGx7i6Ms hwRBnofPezpEtZ1ebp0TjO/yKFWvIcTVCohVtwos9iSApAwLtEvoKsK5n4LOmXvaL+mrG7 55mYpHHT11kq5RhnShL9Wt11jawmNg9RCCdR0m5oNkGM8jbqTLgFbAysqA8WaSLDFD3xy6 4JX4DhivQHoCq1Eukpl8SPsGESkAkd0OjBj5QKivEW6QekR9SZh2fbwRJG7VivLiolSYqL 0bt67O62ZW+bqUfPB3rZIBjNlMkeAAUDvHZfkhGCIKwgqhkiCVF7aVKsa4As2A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691416369; 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=lXvAKFXjZsZtpNvVsuWPTJGbTaymXF55DtvrpybYokk=; b=8AAFg35e1qoRQxuooevFqDgoPqOO+KTzGdPftEzlqfkvlGO8J/GvJ1y7ebTnEXzOdOs7Nq chnTu+Su1ZUXKqAA== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Michael Kelley , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko Subject: [patch 10/53] x86/mpparse: Provide separate early/late callbacks References: <20230807130108.853357011@linutronix.de> MIME-Version: 1.0 Date: Mon, 7 Aug 2023 15:52:49 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The early argument of x86_init::mpparse::get_smp_config() is more than confusing. Provide two callbacks, one for each purpose. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/x86_init.h | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/x86/include/asm/x86_init.h +++ b/arch/x86/include/asm/x86_init.h @@ -17,11 +17,15 @@ struct irq_domain; * @setup_ioapic_ids: platform specific ioapic id override * @find_mptable: Find MPTABLE early to reserve the memory region * @get_smp_config: get the smp configuration + * @early_parse_smp_cfg: Parse the SMP configuration data early before ini= tmem_init() + * @parse_smp_cfg: Parse the SMP configuration data */ struct x86_init_mpparse { void (*setup_ioapic_ids)(void); void (*find_mptable)(void); void (*get_smp_config)(unsigned int early); + void (*early_parse_smp_cfg)(void); + void (*parse_smp_cfg)(void); }; =20 /**