Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4537539rwi; Mon, 17 Oct 2022 07:32:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cypFBQxhDkw+yWOLEBi2Q+ZNHcdN8Rs9/yKp3bsq7/Nwn0OG4y0VdLQDLgAyifteyl9aF X-Received: by 2002:a05:6402:357:b0:458:5cb6:f587 with SMTP id r23-20020a056402035700b004585cb6f587mr10704168edw.183.1666017175201; Mon, 17 Oct 2022 07:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666017175; cv=none; d=google.com; s=arc-20160816; b=zqNLjHCmDJJVM+D43iOjM0VoWE6m8sfv+iVbjac9GMm4Iz0sUIQ5lX0M0Cf1/PfGmy WIy5RXB2ORuUStp2NM9TpOMBkkSufofNIvChSTzrqJx4yLMXicB3geETkw4C0cmMNESD K+kw7S2vi1m2TVAYBtWe5xnyKedHq1gkgPgYPSXhP7wtrLTnetR+Un2x5ZQneAdHo/kT T+ckIKQb7Kz7hvxWOlf5S/AX5mrKQU0/9EtaWFKqrm847JWCRE02dKCCx05rIosAAeFR kGiY0M30jM7wZxLwYOFOe7Y4HwS5wAzcYC1ck1tuA1yjJnacTksLZk2tfWDH+1Cp61GX vOlw== 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=RCx8kEGVPlTMh63B682V/Mb9Zb7eNpGcPYD2Rcy41og=; b=Y+43WAbOlxHR3FAYRKrFgHTTpMPfcQfDAV2VqcAq99N2JdYOwUOgksaVB39GFGzcMY /3kTPYjubXCuYLVOh0351my7Zww90sx+owdSGPGrNfZajaLIOrpiSHHXxbDt244k88r3 xxaRn/zJkQI6JAGuDVEtotOU/OSLnSjPn48UHMeIFOHthbvKj68iDLQIVILGlhg2T8Un eLgK50VbcoQLxhubYn9ax4BICtOWNilF/ljaBk6pV2Q2UtinO5A+H7qBTX3f9SLiHeyN FXwdC7nV4xo6trN6SiF+vW9tazc9or25wWcotueSGxFXLHU3pbTSgCHYRo+vTF2b4Ebq N0Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Xmv1DjyP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="cYzGgM/i"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a170906795200b0073beb58e98dsi9393360ejo.276.2022.10.17.07.32.28; Mon, 17 Oct 2022 07:32:55 -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=@linutronix.de header.s=2020 header.b=Xmv1DjyP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="cYzGgM/i"; 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 S230147AbiJQOJO (ORCPT + 99 others); Mon, 17 Oct 2022 10:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbiJQOJL (ORCPT ); Mon, 17 Oct 2022 10:09:11 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D33665249; Mon, 17 Oct 2022 07:09:10 -0700 (PDT) Date: Mon, 17 Oct 2022 14:09:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666015749; 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=RCx8kEGVPlTMh63B682V/Mb9Zb7eNpGcPYD2Rcy41og=; b=Xmv1DjyPgcCHsMfy+Ked89Yb/bQs7HpXwXwZLeDHB0TFPV+YAc/0E2ThLsriKhtP+qGUrn l9p4E3/bvO+tM7Gai7Bc/a+kMXf8zlARDr1ZoOYGhq7x63UqVfCNdKTOtuReShrHvE4g8O vdKT1xpUmS8wjQ6Cf0bthZAMPPkiQAZwjw4otxSY9hxBzLENHRyH1aPF/Mq2TmVP62RFtJ k/iMLDQ0F5fKRwsQvJmKXX5hJZqr2YYbYNUYWskxYph4+nUJ8TuaYYREPd0v6VKiQIxdP0 eo0AMITShn1J80oc7W8xNBwEMF6Ds5o+SWx+6JZJUZZFyTFH4yD3rggU3ld8pg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666015749; 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=RCx8kEGVPlTMh63B682V/Mb9Zb7eNpGcPYD2Rcy41og=; b=cYzGgM/iFbfTBotS5N8mck5H6/yvq2MwOp87Lsx7VxwX+UMJ9LLZwKa4hI6yByEG1EYOrv gfOm6Rh+8hnh7pAQ== From: "tip-bot2 for ye xingchen" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] timers: Replace in_irq() with in_hardirq() Cc: ye xingchen , Thomas Gleixner , John Stultz , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221012012629.334966-1-ye.xingchen@zte.com.cn> References: <20221012012629.334966-1-ye.xingchen@zte.com.cn> MIME-Version: 1.0 Message-ID: <166601574750.401.8980983182110986351.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact 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 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 The following commit has been merged into the timers/core branch of tip: Commit-ID: 8be3f96ceddb911539a53d87a66da84a04502366 Gitweb: https://git.kernel.org/tip/8be3f96ceddb911539a53d87a66da84a04502366 Author: ye xingchen AuthorDate: Wed, 12 Oct 2022 01:26:29 Committer: Thomas Gleixner CommitterDate: Mon, 17 Oct 2022 16:00:04 +02:00 timers: Replace in_irq() with in_hardirq() Replace the obsolete and ambiguous macro in_irq() with new macro in_hardirq(). Signed-off-by: ye xingchen Signed-off-by: Thomas Gleixner Acked-by: John Stultz Link: https://lore.kernel.org/r/20221012012629.334966-1-ye.xingchen@zte.com.cn --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 717fcb9..f40c88c 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1422,7 +1422,7 @@ int del_timer_sync(struct timer_list *timer) * don't use it in hardirq context, because it * could lead to deadlock. */ - WARN_ON(in_irq() && !(timer->flags & TIMER_IRQSAFE)); + WARN_ON(in_hardirq() && !(timer->flags & TIMER_IRQSAFE)); /* * Must be able to sleep on PREEMPT_RT because of the slowpath in