Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4155872pxk; Tue, 8 Sep 2020 12:06:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2NzngWX5Fu0ch6zLe5MB4B12xqgmZ0x2uecAQ7FmIUb6iZGGr1PKvavrZK5xfhymGkqSu X-Received: by 2002:a05:6402:b0f:: with SMTP id bm15mr449525edb.388.1599591982472; Tue, 08 Sep 2020 12:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599591982; cv=none; d=google.com; s=arc-20160816; b=BwFwt9pFQ3VZINRTqoPUNZNrDK1ADeVLRtBGf2/ZwddmLAepeu1j/1TsJWoXLoaJIf US0V7auoCV1MSjrhp1nC+x+bahFHI2dUXnFNrhAsCEruXcTLDLeLd0b6sr7wJIT1lgcU 7vCd4VPRC6FHDh93tMiK0RDkTq0Zxu/p86PvuS9zzQs9UvwJRNWLsvmHXQYvz8B/xUZ6 4OUgA3Yt0MJx29pn9WYo/Ikg9e9jxcQqkzZMROuKhz1DgYNntMDbVWI2fKHDAwb/4ckg H9iNw76rvlALAiWumab3/3GnuirTEW3hnV4HY1lwQDqHVK0by4XulnrK2b5RnjuGv6Cu AH9Q== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VPnwnWT5mqnuVKd8HAseAFLgGvJNslyjfSvsrTQjAOo=; b=oW35XY4/eXnwdVEMnEcRQnaA/opkaXvsNBPae41Y7uYJXqj9wA5WlbBXQmu44Hl/Rk FcNYnMRfnuohIMZbfACcHkdZPnn0xATrxWGzI7AKk1E/Gb0DjJphv5b7siFoC0003QGa ORsYfrnWgdilYDRKsHEMXLbrpRz1wfXGsf1k0zci9nBF77YTQ+UdTMhUXAdQS9bEj/mf +MzNQSVqB1mRcddW4ZfiKrlLGx4LRceRpePHKTFrfrEPh6+BzKIe4pF3atx/DKky67Df awHwXbZrzOamA5L/K9lkqrRaIjGmEaN+qEl6tt+eNl9MHHwkTbu8LAYZMOiiqQO355DQ LGBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D1OwNVFB; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si11651316ejg.212.2020.09.08.12.05.58; Tue, 08 Sep 2020 12:06:22 -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=pass header.i=@kernel.org header.s=default header.b=D1OwNVFB; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730654AbgIHTCk (ORCPT + 99 others); Tue, 8 Sep 2020 15:02:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:55024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731289AbgIHQIC (ORCPT ); Tue, 8 Sep 2020 12:08:02 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBA2423EF5; Tue, 8 Sep 2020 15:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599580072; bh=MEokPjVflEq2PyM5DqEXjd/vCI5oiXcl4gUH3vH5M7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D1OwNVFB4FVDYf0+CWJEkqEchdcElDVL6kCWTlOriyqOc4TQs6U/2R09biOkObSfj s7H9MAmeQsEUKzVe8MNYIAhZuwe5wsLO6CFzScPwRr+nqE2uQiA7PVO+BiXagi4QRF VPE1WmBYXSJJXCTJrXOFLFPrCdEsPfFxiC9Gy6tw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Peter Zijlstra (Intel)" , "Steven Rostedt (VMware)" , Thomas Gleixner , "Rafael J. Wysocki" , Marco Elver , Sasha Levin Subject: [PATCH 4.19 12/88] cpuidle: Fixup IRQ state Date: Tue, 8 Sep 2020 17:25:13 +0200 Message-Id: <20200908152221.703901228@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200908152221.082184905@linuxfoundation.org> References: <20200908152221.082184905@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Zijlstra [ Upstream commit 49d9c5936314e44d314c605c39cce0fd947f9c3a ] 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 Signed-off-by: Sasha Levin --- 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 6df894d65d9e2..2d182dc1b49ed 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -148,7 +148,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 -- 2.25.1