[tip:,objtool/core] sched/idle: Make sure weak version of arch_cpu_idle_dead() doesn't return
Message ID | 167848168775.5837.8625028915626505990.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1097834wrd; Fri, 10 Mar 2023 13:02:56 -0800 (PST) X-Google-Smtp-Source: AK7set+O6XxNGwlPDgxsswDBs7zkCE375vkC+IS0jUa+6HrxfI0mXoPNYWuuHwhLncT34kdQBsSQ X-Received: by 2002:a17:902:cecb:b0:19a:6acc:1de2 with SMTP id d11-20020a170902cecb00b0019a6acc1de2mr30960266plg.35.1678482176381; Fri, 10 Mar 2023 13:02:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678482176; cv=none; d=google.com; s=arc-20160816; b=jXH+UG1tkQ5knsLhc0TFPW8WOB2sdIGB4y9gkOCYARCRDmUSfKsOhCdEX+CDfRfu+R sfaHbekm8gA6JFrxqtsKVX/JpL4gmOtLy5ylVOOAXJ3MRHPpeMxZKDx7vSNDHJfF5W6x 6NELy1Y2FmKvXc3kYOX8r2mjEa0331QVWMkfDZ2I9G0x00m12MmIy4GypBvxF0xLhD2j lioWzOjukK7gIQhMCz4dOYbDN0BP2NgryNP959x4DvPup638OyPpv8fVzGWBclhz3xR9 jq0CxnEs8a0ce0qAczk4CbCV8sLiFR5f/68PVnA5T5O9BCbm/FxXo/x6QCkB4d/iVNu9 TyWg== 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=HF9W/KUr4Gp2MNsxFmHjSGH0UnmP2/01xQcvQXQtHjY=; b=ho1WQYlxf8pFzUTCEjKFzTS0Lg5b5kugZ4PuhtBqGne7V82WzweWXJcXtJr/+9jMUB AXzZn14q0ofLxMVmHZhUdIgXLOqHfEdvVHqGw7/7Wr9lOEOumhFHwrMYbI4u9l7/Tr79 7MBYd+pA2F+edc4QsyyuONppRl6xhHH+Nr9yjM6TGbuIYi5c0gZrhBWWvypGZQ08FzNL LTJvMs9yaQSUSTnsDOOBZexBaeY8DOOkioncXT6sbNcTJD21KUmLZwCPJes3zFO0mbVf doFPNiES1sxzLDpT2Y6Lj4UyOO1RpjGUYyF81e8KvA8YAsdl3rRnfcG+z0W8Cit+LB4Y bT7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Q/Z0Q5sK"; dkim=neutral (no key) header.i=@linutronix.de header.b=I77aEj9N; 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 j17-20020a170903025100b0019a7278f15dsi850483plh.96.2023.03.10.13.01.54; Fri, 10 Mar 2023 13:02:56 -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="Q/Z0Q5sK"; dkim=neutral (no key) header.i=@linutronix.de header.b=I77aEj9N; 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 S231631AbjCJUzS (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Fri, 10 Mar 2023 15:55:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbjCJUyv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Mar 2023 15:54:51 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE7971A96C; Fri, 10 Mar 2023 12:54:49 -0800 (PST) Date: Fri, 10 Mar 2023 20:54:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1678481688; 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=HF9W/KUr4Gp2MNsxFmHjSGH0UnmP2/01xQcvQXQtHjY=; b=Q/Z0Q5sKXtE9VFFDtZG4Bv2AQybXDZoiNJO1Ls9ETtKqYA5b5KyIDb9zeNH8u69VxoA7BX 1XlE4XlkBc0w+enqYD6oYI7XUhMuNU2TS3WePmif5smI3E9fKqd2Zy0bK1Oa1Kma5qs0+/ j03TSUwl/vcRd/QsYkTzDxS6fotx4M5rsV230SrNZ0aaL7/3sWH0MAxUiPHuY4xclcFFeq g0g8e17u9zuHjfB1RQn5N1t7ADI4H5UCO9E5I7l0nF12hAzRXUzF96cVEgT+jsMjt3Ke8H UyyxnGMV6lbKuFAVHBe9y0zkDZysvPFaX/0XpaodE8ZXEC4Cbp95N0jdlJK7vw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1678481688; 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=HF9W/KUr4Gp2MNsxFmHjSGH0UnmP2/01xQcvQXQtHjY=; b=I77aEj9Naj66vNT93ZRJaXzSPtUHKEuGziMakLvNoAsBEiTEQrGLsOKtkZioXoLSCQ1R8x KToX9cZxkpTgHHDA== From: "tip-bot2 for Josh Poimboeuf" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] sched/idle: Make sure weak version of arch_cpu_idle_dead() doesn't return Cc: Josh Poimboeuf <jpoimboe@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <cf5ad95eef50f7704bb30e7770c59bfe23372af7.1676358308.git.jpoimboe@kernel.org> References: <cf5ad95eef50f7704bb30e7770c59bfe23372af7.1676358308.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <167848168775.5837.8625028915626505990.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757789510958156174?= X-GMAIL-MSGID: =?utf-8?q?1760016126230745875?= |
Series |
[tip:,objtool/core] sched/idle: Make sure weak version of arch_cpu_idle_dead() doesn't return
|
|
Commit Message
tip-bot2 for Thomas Gleixner
March 10, 2023, 8:54 p.m. UTC
The following commit has been merged into the objtool/core branch of tip:
Commit-ID: dfb0f170cadb03da4f408ae53cc2908120e1f90e
Gitweb: https://git.kernel.org/tip/dfb0f170cadb03da4f408ae53cc2908120e1f90e
Author: Josh Poimboeuf <jpoimboe@kernel.org>
AuthorDate: Mon, 13 Feb 2023 23:05:55 -08:00
Committer: Josh Poimboeuf <jpoimboe@kernel.org>
CommitterDate: Wed, 08 Mar 2023 08:44:27 -08:00
sched/idle: Make sure weak version of arch_cpu_idle_dead() doesn't return
arch_cpu_idle_dead() should never return. Make it so.
Link: https://lore.kernel.org/r/cf5ad95eef50f7704bb30e7770c59bfe23372af7.1676358308.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
---
kernel/sched/idle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c index e9ef66b..56e152f 100644 --- a/kernel/sched/idle.c +++ b/kernel/sched/idle.c @@ -75,7 +75,7 @@ static noinline int __cpuidle cpu_idle_poll(void) void __weak arch_cpu_idle_prepare(void) { } void __weak arch_cpu_idle_enter(void) { } void __weak arch_cpu_idle_exit(void) { } -void __weak arch_cpu_idle_dead(void) { } +void __weak arch_cpu_idle_dead(void) { while (1); } void __weak arch_cpu_idle(void) { cpu_idle_force_poll = 1;