Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp253445pxa; Thu, 27 Aug 2020 00:59:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvBLP4ZXLG2OL0yk4bZ1xlA6yNU8hnou0mFp2XatbpxR6COj1RQl/rzoESMNaEuM2OJz07 X-Received: by 2002:a17:906:84c1:: with SMTP id f1mr19405226ejy.494.1598515166270; Thu, 27 Aug 2020 00:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598515166; cv=none; d=google.com; s=arc-20160816; b=N0ZBOvVfX2GRJdxDyPD+Fx/OX/YPww9JOIK68eaAoRKKfuHakLzm1J4DVDewF5KdDV KkGJLs4GBY88N0ZRrrB7mAhPOYExJdTIVYujwONjEDXTWZcFEsolHhKyEHx+jdibrgh1 sRubf8oGDVgupTr2uNVj+0ju/xNajRi1+nTWtaEApg3L1jy/byJAMDvA/aoZGLtpNHK4 4dUFZtUjg6RqHZ7ryhM8OBeAYiJBDpnOsTpPeQv2p7nnwjhKya/tZeh6ZM/RElh11VyJ uPvW3mnegWEiiRTfMfeXLBtW+zMCi4r0NNRe04Tl1rRVIO97BT/AWHgjp9YPIM6TQLfy 8/Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=yj6hitLGgH97TCU3MzZRcCuH/06F7hXMifwYh8hnFhA=; b=FjzQOX75RstAGzileSlLcW7KPa8VXrasgS3waaJmucHUGTXobJRmglp4FiE96Se+pk JFM7a0i3JJswGsRVPXBNl+P7lltjxl6aUyPDxxlw0rVylcO7YG5lz9HAwMdIicNGmVXn RU8KWIAK1DDVi4x6YMJmCiqgkQgCzNnQEMJh81SOK+A1ARbZObIJZqA2wAJG5pc3P5O6 Lsc7TXu66ptl/N6aUAlunZ0yuscQnYmS5IZ7tJvRDeJjGJeWR20VzK5CGkyv4KoWuoZ2 pbmAwMb692aaDXcx/sRu1NNfTopPZI0gMaPooIkPg/35p7Cys5yssX8zPmAnB13nyiec NVuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=wyBvHWxf; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs14si872197ejb.615.2020.08.27.00.59.04; Thu, 27 Aug 2020 00:59:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=wyBvHWxf; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728116AbgH0H4P (ORCPT + 99 others); Thu, 27 Aug 2020 03:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728435AbgH0Hyb (ORCPT ); Thu, 27 Aug 2020 03:54:31 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94081C061264; Thu, 27 Aug 2020 00:54:30 -0700 (PDT) Date: Thu, 27 Aug 2020 07:54:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598514869; 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=yj6hitLGgH97TCU3MzZRcCuH/06F7hXMifwYh8hnFhA=; b=wyBvHWxfU6XjmQSYgdWgGYuc7br1bo9CIAWq3pOFL3Yyo0O1eep8rV9B70EfUG+Nw+5bEi x3V2ycCteIo6InpQR4iwIYhWgWmDxpsDuA7zZwJySKOKPxI9fFdCqFqZJ9x9sjipfKZW30 qRYf6D4S4zvh37w0cfmbzYvNK+BQL8SKUriD/8A335FFRu39X7sBds1aLvzYwF09AH1Jsp 69zDcw5INY4OTTDh84KJWFwqUV/0wgLSzTUiB9gtM6cg6YO1UPdF0bhq0j3nF/83LUksRr YoZrFx3k12h0stlMzqP/gwAFbyxvYzNSpwlBP0bm+45uHY+oTtwcvU0b/pvBXA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598514869; 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=yj6hitLGgH97TCU3MzZRcCuH/06F7hXMifwYh8hnFhA=; b=1yahYWhVDmg1dlaH33pbEtKjxVsEZKJBD1nu3JfWzdbPznuxj1uiuQ5wp7zm1NBg3uNwN+ 9bNrygnn1V1Wk3Bw== From: "tip-bot2 for Peter Zijlstra" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] cpuidle: Fixup IRQ state Cc: "Peter Zijlstra (Intel)" , "Steven Rostedt (VMware)" , Thomas Gleixner , "Rafael J. Wysocki" , Marco Elver , x86 , LKML In-Reply-To: <20200821085348.251340558@infradead.org> References: <20200821085348.251340558@infradead.org> MIME-Version: 1.0 Message-ID: <159851486844.20229.10979787038687285429.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the locking/core branch of tip: Commit-ID: 49d9c5936314e44d314c605c39cce0fd947f9c3a Gitweb: https://git.kernel.org/tip/49d9c5936314e44d314c605c39cce0fd947f9c3a Author: Peter Zijlstra AuthorDate: Thu, 20 Aug 2020 16:47:24 +02:00 Committer: Peter Zijlstra CommitterDate: Wed, 26 Aug 2020 12:41:53 +02:00 cpuidle: Fixup IRQ state Match the pattern elsewhere in this file. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Thomas Gleixner Acked-by: Rafael J. Wysocki Tested-by: Marco Elver Link: https://lkml.kernel.org/r/20200821085348.251340558@infradead.org --- drivers/cpuidle/cpuidle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index 8719731..2fe4f3c 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -153,7 +153,8 @@ static void enter_s2idle_proper(struct cpuidle_driver *drv, */ stop_critical_timings(); drv->states[index].enter_s2idle(dev, drv, index); - WARN_ON(!irqs_disabled()); + if (WARN_ON_ONCE(!irqs_disabled())) + local_irq_disable(); /* * timekeeping_resume() that will be called by tick_unfreeze() for the * first CPU executing it calls functions containing RCU read-side