Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp83478imm; Wed, 29 Aug 2018 14:37:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaRupAnb+Mea0Jm9d0PQawI9g+Vdmon9gYlVKu2C6rzG+RkuUJd/W1hFi73gE9Xbz9sVUiG X-Received: by 2002:a62:9c1:: with SMTP id 62-v6mr7542717pfj.17.1535578634645; Wed, 29 Aug 2018 14:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535578634; cv=none; d=google.com; s=arc-20160816; b=vk7M2SjtMwfeRuNLH9u3o86JWwj5VdyZQNIL9G6VVwr/2hlsWVzQir/5GWTMQwHJzc 7d89JIb6lJAC5q1IY7FB7efDrRZKjwgiGnDIuhDaMRBU9HEx1UMEZx7TR9QTnqECOajj d1H4A/Nn9R2G4PJsD+vncpzvdHw/TNA6qmVLHqmc3sII0S7Z8RnB7zGjBjkt2d3QSuip t61VTx074noLICAGkzDIQKRrz9z5qvB2eI/+6QZaZ201WoGRsTklQp6AU4urBz9ZC+26 ObDoG7rFbfq3z7KmmTdbBHHIyw2Q8D0X4DWoITfpn3Qf6LQVkBeu9+WBkeF7IPf4WKm8 LmZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=B11tqCjVQxK7uLFIn1oj0FoB+QgfizwSnMnPWuOwRyo=; b=W+J5vQzhoSw0Vu2j5V7PMsXF8FdzL2iWU6aJmdG/VgPbKpzbvMUBcx+P/mBFwKsSKo gcvyrPwqj/6fM4K80gkm4aBkSyM+hKE2IzuI21gTW8q5VgSZkqr791g4ntJ5ZkPQXvFy HEvguVdiGZlMzFJwcRwuxgabqG/soexxunUehFw0+fDMjEKy0P43eXSFRynEP0QsoR8K uZWAzwST9A0hKk1vyzLVhbx+/4EGJlJfkNp1uqzf+BuZ2cU6jcxd0H9pvhFceQYi3VzD eIRCUDGONRmjxiR5kxtJSHFi8gIpjDfzNpDW+faCr46hJPLps2oQM0CHetNLm7XIL30X q1JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=arl7oGcf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si5008987pgg.552.2018.08.29.14.36.59; Wed, 29 Aug 2018 14:37:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=arl7oGcf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727427AbeH3Beh (ORCPT + 99 others); Wed, 29 Aug 2018 21:34:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:38894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726592AbeH3Beh (ORCPT ); Wed, 29 Aug 2018 21:34:37 -0400 Received: from [10.231.3.186] (unknown [72.28.92.218]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C6BA8205F4; Wed, 29 Aug 2018 21:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535578548; bh=rgG8GEhhR4NwLbsAZHKaqMPAlDqCgy/HK52diEG25aA=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=arl7oGcf1LAkXkPX1n+H4crJk/Rhnid76edRGwDchXagNrjPOTvS1PMqWl+v0cEkP eo3MmP1zs1oaGwyupfyv/MYg+clksu16Fe+zTCjgKA5/2jWbgCtA94gJFCgLCtYIeR X50LFaMv0ioolsKC3OxRd+AxxVLk98ff43nBKdfI= Date: Wed, 29 Aug 2018 14:35:48 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-X260 To: Julien Thierry cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, daniel.thompson@linaro.org, joel@joelfernandes.org, marc.zyngier@arm.com, mark.rutland@arm.com, christoffer.dall@arm.com, james.morse@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, Stefano Stabellini Subject: Re: [PATCH v5 07/27] arm64: xen: Use existing helper to check interrupt status In-Reply-To: <1535471497-38854-8-git-send-email-julien.thierry@arm.com> Message-ID: References: <1535471497-38854-1-git-send-email-julien.thierry@arm.com> <1535471497-38854-8-git-send-email-julien.thierry@arm.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 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 Tue, 28 Aug 2018, Julien Thierry wrote: > The status of interrupts might depend on more than just pstate. Use > interrupts_disabled() instead of raw_irqs_disabled_flags() to take the full > context into account. > > Signed-off-by: Julien Thierry > Cc: Stefano Stabellini > Cc: Catalin Marinas > Cc: Will Deacon Acked-by: Stefano Stabellini > --- > arch/arm64/include/asm/xen/events.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/xen/events.h b/arch/arm64/include/asm/xen/events.h > index 4e22b7a..2788e95 100644 > --- a/arch/arm64/include/asm/xen/events.h > +++ b/arch/arm64/include/asm/xen/events.h > @@ -14,7 +14,7 @@ enum ipi_vector { > > static inline int xen_irqs_disabled(struct pt_regs *regs) > { > - return raw_irqs_disabled_flags((unsigned long) regs->pstate); > + return !interrupts_enabled(regs); > } > > #define xchg_xen_ulong(ptr, val) xchg((ptr), (val)) > -- > 1.9.1 >