Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp421392pxa; Fri, 21 Aug 2020 10:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+0hXnSORTUsveCatvGaMAV00Z9QSBWwfrjkw98q/RpgxkzTfvHwCAW6Y+WiCnufsqj6mD X-Received: by 2002:a17:906:5796:: with SMTP id k22mr4258687ejq.77.1598031496038; Fri, 21 Aug 2020 10:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598031496; cv=none; d=google.com; s=arc-20160816; b=QQe3Z9idr+WjZp7GDT+7aVpOh0AESmcBek2Erzoyb0NLTjSUVZLkH0bW+5VCPT5jIz 9ssaeDFVnYsxG4NE9+IiB5Z1wS3y7U7+Ckv2BRvym2835QehU6LsYAdas5QvoEFVnAgm 7kZlXH8bRkGuzhWQEf3XVshodXb7AOg5FcygbXg2FsZgz6S9zsyfBh1CdgYWcwRLGdG7 c2xWUhbG1hf7/IsFxPGv6+CUHUIPjAQlESr803xBjJkzJJgTDYl/PZaP5izW3AvJsb6C gg2F/nssxYjEi+S3XxwQ+rilRX/pAlZisRsZd3YEbDWxUSOeUORvlFhGWHFvYOcwYeV1 obIQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wGo1tTQ/OkMmFJGDAzlA7BKRTmh1qi6hM9OI4/fvZQ8=; b=bGjEtskezw4QdRn/J3EcvSSabIjzXqdFkNN7f7Mpw2dIeEIEjyD4El4KNwpdkTCXt2 FMBKSPL13znsAftqwHb7P3JjO4abPnCZimoBjloc3ax+BVmRYsQ43oiJjAEltwMSCS1j IVFzoG7LvTnuKLxebwU4KzUridSpvbSBj5TuluMQXXwKma9wBXdYlCJG2KOgj5li+zs0 1+O14Gwt2keQwsvoepbBXiCMTRw/RS5u2WQ/RI6SfEzoFYrpL0OZ5gp0/JYU0zqA+noj kEtvZqaC+9ZjStAfZcJKlD3J/VOY+duPZWSYhrKOfBOksOvbPJNCIVnqqU3a9vHGU0I2 gnww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si1619285ejm.36.2020.08.21.10.37.52; Fri, 21 Aug 2020 10:38:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728015AbgHURgs (ORCPT + 99 others); Fri, 21 Aug 2020 13:36:48 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:64244 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbgHURgr (ORCPT ); Fri, 21 Aug 2020 13:36:47 -0400 Received: from 89-64-88-37.dynamic.chello.pl (89.64.88.37) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.459) id 46880135231ebf0e; Fri, 21 Aug 2020 19:36:44 +0200 From: "Rafael J. Wysocki" To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, will@kernel.org, npiggin@gmail.com, elver@google.com, jgross@suse.com, paulmck@kernel.org, rostedt@goodmis.org, joel@joelfernandes.org, svens@linux.ibm.com, tglx@linutronix.de Subject: Re: [PATCH v2 02/11] cpuidle: Fixup IRQ state Date: Fri, 21 Aug 2020 19:36:43 +0200 Message-ID: <2397536.RUgnjfFTVL@kreacher> In-Reply-To: <20200821085348.251340558@infradead.org> References: <20200821084738.508092956@infradead.org> <20200821085348.251340558@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, August 21, 2020 10:47:40 AM CEST Peter Zijlstra wrote: > Match the pattern elsewhere in this file. > > Signed-off-by: Peter Zijlstra (Intel) > Reviewed-by: Steven Rostedt (VMware) > Tested-by: Marco Elver For all patches in the series: Acked-by: Rafael J. Wysocki > --- > drivers/cpuidle/cpuidle.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > --- a/drivers/cpuidle/cpuidle.c > +++ b/drivers/cpuidle/cpuidle.c > @@ -153,7 +153,8 @@ static void enter_s2idle_proper(struct c > */ > 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 > > >