summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-08-21 11:40:49 +0300
committerPeter Zijlstra <peterz@infradead.org>2020-08-26 13:41:55 +0300
commit021c109330ebc1f54b546c63a078ea3c31356ecb (patch)
tree6d74b5c256c3aede82f964c71a13eba89e9e3b53
parent36206b588bc815e5f64e8da72d7ab79e00b76281 (diff)
downloadlinux-021c109330ebc1f54b546c63a078ea3c31356ecb.tar.xz
arm64: Implement arch_irqs_disabled()
Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lkml.kernel.org/r/20200821085348.664425120@infradead.org
-rw-r--r--arch/arm64/include/asm/irqflags.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/irqflags.h b/arch/arm64/include/asm/irqflags.h
index aa4b6521ef14..ff328e5bbb75 100644
--- a/arch/arm64/include/asm/irqflags.h
+++ b/arch/arm64/include/asm/irqflags.h
@@ -95,6 +95,11 @@ static inline int arch_irqs_disabled_flags(unsigned long flags)
return res;
}
+static inline int arch_irqs_disabled(void)
+{
+ return arch_irqs_disabled_flags(arch_local_save_flags());
+}
+
static inline unsigned long arch_local_irq_save(void)
{
unsigned long flags;