From patchwork Sat Dec 17 18:55:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 34253 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp1637325wrn; Sat, 17 Dec 2022 11:01:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf56cMiogLSK7B6THmrRzUqfA+8kYPX0aCTnVlbA91vgjsTns8x2gw4Xstkpk6cTs5dCXRA6 X-Received: by 2002:a05:6402:2944:b0:45c:835b:799e with SMTP id ed4-20020a056402294400b0045c835b799emr30069247edb.31.1671303695753; Sat, 17 Dec 2022 11:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671303695; cv=none; d=google.com; s=arc-20160816; b=mEv0H9fC/MOn2cEQZqQCExbk+WBjEd3Z3yDDgsEoy5LxtIqoRA62YoPr1tY2eZSjEd YW0Ky01USz43j5hoaeYeh16GeMCeSaR0E3AEdyKTPzMExDLtJNRuoywr/3wGtTZcU3za hPz+vqwSfUt0z8DFUPMPGAWfZAFysl9cALtSJb8ca8C85v/m2NzyRvpl9Uesq7ICacBh LeJLuWzgq/feXntRiUl1aZkbLuD6ureeEgHlOK3XPDA5RYr8adBgBfC4IDptfhMMs7ik TvD71W+wHo6IODF618nOH0VNOv37eV/I9OAl+EwJYABaotZpUK2tqWiFOIi0kl2Yhzhx uw/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=9oyLziOMTJoU0purFTTd8yDxf6Tw40HdsE7Rn9fFNKI=; b=wyEY9/XeD82QPgrL/J+DZ8SNnayT8yfdfo7DovhI/J8Bh8X6nckViyI7cnIV5m2M51 403NcmyyQuBVsAD5KF3Qx4d1PcG1GK1JhauyPiTC8NApNIs5d543NB5WT81fFmehFSma la03XaSjuqTCiQccxlckQJJBj3E8+KSotO5oFYCEh3Pyup8s/wZCmqmSaJH6DEMaUH1w 1mbRAFc+wTu04oYLMYv1743d72RYUtNCq8iM1EP4zY9KDT9QV147jzR/H4rm4vBsziZs 2MgjvFU45XLwWou2Twmunf2idsFKGfodIDSAC/ToWGsarfxCTHUBW7A/FYurAQpal6Z5 f2xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nDWpVXhx; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a1709063e5200b007c0d4f96d8esi4270518eji.566.2022.12.17.11.01.11; Sat, 17 Dec 2022 11:01:35 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=nDWpVXhx; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230320AbiLQS5u (ORCPT + 99 others); Sat, 17 Dec 2022 13:57:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbiLQSzk (ORCPT ); Sat, 17 Dec 2022 13:55:40 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABBB3F49; Sat, 17 Dec 2022 10:55:39 -0800 (PST) Date: Sat, 17 Dec 2022 18:55:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1671303335; 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: in-reply-to:in-reply-to:references:references; bh=9oyLziOMTJoU0purFTTd8yDxf6Tw40HdsE7Rn9fFNKI=; b=nDWpVXhxBlIxs9v1RHdkjG5gysIbY1zolNtfKt6I3BBWG4Rh8r/9thrt+2b1Rc5q1+3LrJ 3sndYL+nDre55VArD0qZMi6G3cfHM2ELf+SLU3hzjUqMQ+Q78kyK9422LD9lZ7hVUu+UXQ 6fZKnf1hjm/qFRW9/qo4XJUpz3gWX4vmI/Hw90nWMNsAjW2iIQn/s5pmq5ApOgmljN8ukq 5IOPJDhgSLs+lBsq+nxlxiadw1w/tWoV6nfXIiKTDTKhz0eetHIpI4hT/ZsR/UkTZiEjJy GLHGT9DCkKo++l7xNvwFAq9voQEWft6AIWx74ve5zCuoDQda1WpTzSjxtB6c/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1671303335; 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: in-reply-to:in-reply-to:references:references; bh=9oyLziOMTJoU0purFTTd8yDxf6Tw40HdsE7Rn9fFNKI=; b=E7Dna2I6zGs1AeKoQl/OqtmJxdPI8tqGUPZzBbgIAIPbhK+O3fu858De5B/0hHCfZBzb4T xQAGPwRLrAEhkvBA== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm: Initialize text poking earlier Cc: "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221025201057.881703081@infradead.org> References: <20221025201057.881703081@infradead.org> MIME-Version: 1.0 Message-ID: <167130333534.4906.12011322763172418991.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747691841767562493?= X-GMAIL-MSGID: =?utf-8?q?1752488943941708257?= The following commit has been merged into the x86/mm branch of tip: Commit-ID: 5b93a83649c7cba3a15eb7e8959b250841acb1b1 Gitweb: https://git.kernel.org/tip/5b93a83649c7cba3a15eb7e8959b250841acb1b1 Author: Peter Zijlstra AuthorDate: Tue, 25 Oct 2022 21:38:25 +02:00 Committer: Dave Hansen CommitterDate: Thu, 15 Dec 2022 10:37:26 -08:00 x86/mm: Initialize text poking earlier Move poking_init() up a bunch; specifically move it right after mm_init() which is right before ftrace_init(). This will allow simplifying ftrace text poking which currently has a bunch of exceptions for early boot. Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20221025201057.881703081@infradead.org --- init/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index f1d1a54..5372ea2 100644 --- a/init/main.c +++ b/init/main.c @@ -996,7 +996,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) sort_main_extable(); trap_init(); mm_init(); - + poking_init(); ftrace_init(); /* trace_printk can be enabled here */ @@ -1135,7 +1135,6 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) taskstats_init_early(); delayacct_init(); - poking_init(); check_bugs(); acpi_subsystem_init();