From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9DCEC433E1 for ; Thu, 20 Aug 2020 07:50:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ACA1D2076E for ; Thu, 20 Aug 2020 07:50:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="XDpv7uYd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbgHTHus (ORCPT ); Thu, 20 Aug 2020 03:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726854AbgHTHuP (ORCPT ); Thu, 20 Aug 2020 03:50:15 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4667AC061387 for ; Thu, 20 Aug 2020 00:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=TmRXqH/EmNx/wRQEcUvQeVtWyXDi/UTB5MgtGt6yHow=; b=XDpv7uYdRq2pn0YpOzOt4zJXbY G4o7BJPTxhodFGxK9O83lXYMf68b8zAvvoYAu907WyqyGE7A2vhKLPnUsMkJkzLOy1EhXpGr6ru+n IEiMsWoTBM78o9OY7T4RzVpbWQGjU/mUS0jD+S1eWGnptD84lom9+I9ezU1DA3w1es8tlmluPZZYO jt7CsYAFVT/N8VuBOH8Hhj85o//GmP8/Pzq5aWcTkzC4tgKZ/CJ/vUZo4wcQze7k0hfioTY+2Hbqf j+XfIztDGUNMxrSmxvAM+q6sZT262MiQcQ0nl7C9rWPEEIDtKpQ6g2/vdPllZDmQ5IHmJznojq4Xc AlOig1oQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fKX-0007Df-Ly; Thu, 20 Aug 2020 07:49:49 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 40A643075F1; Thu, 20 Aug 2020 09:49:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 6C7A028B7E845; Thu, 20 Aug 2020 09:49:43 +0200 (CEST) Message-ID: <20200820074640.693984299@infradead.org> User-Agent: quilt/0.66 Date: Thu, 20 Aug 2020 09:30:38 +0200 From: Peter Zijlstra To: linux-kernel@vger.kernel.org, mingo@kernel.org, will@kernel.org Cc: npiggin@gmail.com, elver@google.com, jgross@suse.com, paulmck@kernel.org, rostedt@goodmis.org, rjw@rjwysocki.net, joel@joelfernandes.org, svens@linux.ibm.com, tglx@linutronix.de, peterz@infradead.org, Nick Hu , Greentime Hu , Vincent Chen Subject: [PATCH 7/9] nds32: Implement arch_irqs_disabled() References: <20200820073031.886217423@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cc: Nick Hu Cc: Greentime Hu Cc: Vincent Chen Signed-off-by: Peter Zijlstra (Intel) --- arch/nds32/include/asm/irqflags.h | 5 +++++ 1 file changed, 5 insertions(+) --- a/arch/nds32/include/asm/irqflags.h +++ b/arch/nds32/include/asm/irqflags.h @@ -34,3 +34,8 @@ static inline int arch_irqs_disabled_fla { return !flags; } + +static inline int arch_irqs_disabled(void) +{ + return arch_irqs_disabled_flags(arch_local_save_flags()); +}