Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3586609iob; Sat, 7 May 2022 09:01:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSnP0Qqlhmr2l1fZF9OHM5zVSop/yrlN2j8TNNaktWyQ0n/H7LHanIEQXAEfGgiWlJiN/L X-Received: by 2002:a17:902:f78d:b0:14f:ce61:eaf2 with SMTP id q13-20020a170902f78d00b0014fce61eaf2mr8730476pln.124.1651939287802; Sat, 07 May 2022 09:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651939287; cv=none; d=google.com; s=arc-20160816; b=YoiIKAYi8GO5xVD7kevZgSW0izKkjEUpoFoiZjZJyfm20t/Wsu9QC2L+BDHbhpQox8 YOKPaAkYjG31KvweM2M9mxr8HOo9z8z1p+Ai87zdHLBNH6+1FbmYpXndoCzoqwN/1A50 2EoWPRPGEE9rY2CxSnIUQq2/FlJmhI3XufHEyvKJbXjr/E/b2NfKWqsEZMN6w9JutkHO btcB7+t29oMKKRh8vb8NqXZ45Rc2saEupRqgcPjcLFw32wRkheSBa975FmfJSOIXZcY4 TNV04YdVKnl7TwW+5Q8hKfQZGeIX2LaqbzLTzMd76MN5D+BRSBSNo3reyzoA0NqiF3fy z0VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=6dmxnIbGu94WQVBIuek02dzxXeZxuiC1SFJy6LYGy9A=; b=YJJbPkGg4t4JeeSYsC2lZvt/Q5/RbzKiAyBfxaF+4M8fBAEijqrxlSNPrSwmiiFB7M mKps4yIiAxLJVFFW896m/NX4FBNz9fBKA7quGdNyYMRR89NoAwGGiB/gUv0cPwf0B/U/ O+ZE1y/PQf3lMii8p75DGggMtbpXs3cPqHfv9dpTrVqdB/KMlc0aG3dinlZQqgiFrEg8 K16JS+H+zU3iT4re7da8CU3gEV6HQBe2e2+0835jJU3M3+BNk/RjAOpe47AuhIESeVHm U7X0Q9RnETk5WcPvaTSKReSY+b/AW0x1TYr7uwoHMazftH9rgR+hICmFSNTnfSdgT5DA 4vgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XbU5pEJw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170903004c00b0015d07fa22edsi4673421pla.182.2022.05.07.09.01.12; Sat, 07 May 2022 09:01:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XbU5pEJw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387295AbiEFADF (ORCPT + 99 others); Thu, 5 May 2022 20:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387141AbiEFABt (ORCPT ); Thu, 5 May 2022 20:01:49 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 622EC612BB for ; Thu, 5 May 2022 16:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651795076; x=1683331076; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Nult8sm5xsB/xmikf6OohjRwLwTEdiOtEi3jvHsqyXk=; b=XbU5pEJw2XhDEePLdjTKFhY54/ePm8S6yhvSvV2w1yv07NbMSgkP0mp6 XJXptj2uC3YuSn9J4SeCqdApp8HAOQwfYyhdr9or+/JJk+r3ovVSHqsxh 52bM9VzCSnO+0HJh1EcferownI9pXDMxq3xJHPv9c1RpakZ/iHeZSTtCx DMb+MxA07d1tLgT6zG9UN435RXF/PNdJPPOtYlgnAA3YavdRHE9kSeQJ5 /tViV01w5OY48FyUKPGXzmHGjsUCJGx6nytbb3W8bIMW7u03YBxdSxuJq 2ImK/5xa+r3YvdkD7L6EUSwOCGoRsH9JgXfw0Aj2PChK7mJXCZjNLtE68 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="250283648" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="250283648" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 16:57:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="694914415" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga004.jf.intel.com with ESMTP; 05 May 2022 16:57:52 -0700 From: Ricardo Neri To: Thomas Gleixner , x86@kernel.org Cc: Tony Luck , Andi Kleen , Stephane Eranian , Andrew Morton , Joerg Roedel , Suravee Suthikulpanit , David Woodhouse , Lu Baolu , Nicholas Piggin , "Ravi V. Shankar" , Ricardo Neri , iommu@lists.linux-foundation.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ricardo Neri Subject: [PATCH v6 20/29] init/main: Delay initialization of the lockup detector after smp_init() Date: Thu, 5 May 2022 16:59:59 -0700 Message-Id: <20220506000008.30892-21-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220506000008.30892-1-ricardo.neri-calderon@linux.intel.com> References: <20220506000008.30892-1-ricardo.neri-calderon@linux.intel.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Certain implementations of the hardlockup detector require support for Inter-Processor Interrupt shorthands. On x86, support for these can only be determined after all the possible CPUs have booted once (in smp_init()). Other architectures may not need such check. lockup_detector_init() only performs the initializations of data structures of the lockup detector. Hence, there are no dependencies on smp_init(). Cc: Andi Kleen Cc: Nicholas Piggin Cc: Andrew Morton Cc: Stephane Eranian Cc: "Ravi V. Shankar" Cc: iommu@lists.linux-foundation.org Cc: linuxppc-dev@lists.ozlabs.org Cc: x86@kernel.org Reviewed-by: Tony Luck Signed-off-by: Ricardo Neri --- Changes since v5: * Introduced this patch Changes since v4: * N/A Changes since v3: * N/A Changes since v2: * N/A Changes since v1: * N/A --- init/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 98182c3c2c4b..62c52c9e4c2b 100644 --- a/init/main.c +++ b/init/main.c @@ -1600,9 +1600,11 @@ static noinline void __init kernel_init_freeable(void) rcu_init_tasks_generic(); do_pre_smp_initcalls(); - lockup_detector_init(); smp_init(); + + lockup_detector_init(); + sched_init_smp(); padata_init(); -- 2.17.1