From nobody Mon Feb 9 05:52:22 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 ADD4AEB64DC for ; Mon, 17 Jul 2023 23:16:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbjGQXQA (ORCPT ); Mon, 17 Jul 2023 19:16:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjGQXP6 (ORCPT ); Mon, 17 Jul 2023 19:15:58 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC62A1BE9 for ; Mon, 17 Jul 2023 16:15:06 -0700 (PDT) Message-ID: <20230717223224.087678447@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1689635701; 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=XkrXDbsHY2D9ad8FanhOEsbWH/XRHFiUnXbnPluBQA4=; b=qHr9oU0r8qd75flp4JICvC2WzEGZhBOzfBTH3weDwjKcfD6yYyGalQdW4miVeRgWj0l2e/ tIDwfzYN6GoMqSDz2C9DJDCM2DFUEtyol2WRxlDye+RWteoV9blj8j1+KozQJQlZvu9Qo8 XuFhXBO9qA6pYyfvhWleXKXTiw7IjJko1rC/K63sU+BkFiX2YhaO/4iEWZqfizTTIFMPeB ifAgFG8CjrNLaQ2LP0KVQR8U/PW+1xWjo8JhDNmjTccvNR3jtSAfRzQvk1HGSb7wBS+NAf NswX7cpXaJtqH6x9MQpUsffedDA9nI9KrDeKCFwpMdRD0Xu4zfd7Fl7ZISn68g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1689635701; 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=XkrXDbsHY2D9ad8FanhOEsbWH/XRHFiUnXbnPluBQA4=; b=Y2epMBLyA0KIYVFu+nXXQ8o2u/0MgriTKxN4OMyc74CJxKXayyzEDBjmXwEq0julz01liv r0SLracH4XiXNzBg== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Linus Torvalds , Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Juergen Gross Subject: [patch 17/58] x86/apic: Nuke another processor check References: <20230717223049.327865981@linutronix.de> MIME-Version: 1.0 Date: Tue, 18 Jul 2023 01:15:00 +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 boot CPUs local APIC is now always registered, so there is no point to have another unreadable validatation for it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/smpboot.c | 17 ----------------- 1 file changed, 17 deletions(-) --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -1181,23 +1181,6 @@ static void __init smp_sanity_check(void set_nr_cpu_ids(8); } #endif - - if (!physid_isset(read_apic_id(), phys_cpu_present_map)) { - pr_warn("weird, boot CPU (#%d) not listed by the BIOS\n", - read_apic_id()); - - physid_set(read_apic_id(), phys_cpu_present_map); - } - - /* - * Should not be necessary because the MP table should list the boot - * CPU too, but we do it for the sake of robustness anyway. - */ - if (!apic->check_phys_apicid_present(boot_cpu_physical_apicid)) { - pr_notice("weird, boot CPU (#%d) not listed by the BIOS\n", - boot_cpu_physical_apicid); - physid_set(read_apic_id(), phys_cpu_present_map); - } preempt_enable(); }