Commit 007e4bb6 authored by David S. Miller's avatar David S. Miller

[SPARC]: Add irqs_disabled.

parent dc31ee3e
...@@ -275,6 +275,15 @@ extern __inline__ unsigned long read_psr_and_cli(void) ...@@ -275,6 +275,15 @@ extern __inline__ unsigned long read_psr_and_cli(void)
#define local_irq_save(flags) ((flags) = read_psr_and_cli()) #define local_irq_save(flags) ((flags) = read_psr_and_cli())
#define local_irq_restore(flags) setipl((flags)) #define local_irq_restore(flags) setipl((flags))
/* On sparc32 IRQ flags are the PSR register in the PSR_PIL
* field.
*/
#define irqs_disabled() \
({ unsigned long flags; \
local_save_flags(flags);\
(flags & PSR_PIL) != 0; \
})
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
extern unsigned char global_irq_holder; extern unsigned char global_irq_holder;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment