Skip to content

Commit

Permalink
mips: Implement arch_irqs_disabled()
Browse files Browse the repository at this point in the history
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Paul Burton <paulburton@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200826101653.GE1362448@hirez.programming.kicks-ass.net
  • Loading branch information
Peter Zijlstra committed Aug 26, 2020
1 parent 021c109 commit 99dc56f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/mips/include/asm/irqflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ static inline int arch_irqs_disabled_flags(unsigned long flags)
return !(flags & 1);
}

static inline int arch_irqs_disabled(void)
{
return arch_irqs_disabled_flags(arch_local_save_flags());
}

#endif /* #ifndef __ASSEMBLY__ */

/*
Expand Down

0 comments on commit 99dc56f

Please sign in to comment.