Commit fcd1202f authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka
Browse files

genirq: ipipe: add local_irq_{enable, disable}_full() helpers

Those helpers affect both the real (in CPU) and virtual interrupt
states for the root stage, reconciling them.
parent 88d636d3
......@@ -148,6 +148,23 @@ do { \
#endif /* CONFIG_TRACE_IRQFLAGS */
#ifdef CONFIG_IPIPE
#define local_irq_enable_full() \
do { \
hard_local_irq_enable(); \
local_irq_enable(); \
} while (0)
#define local_irq_disable_full() \
do { \
local_irq_disable(); \
hard_local_irq_disable(); \
} while (0)
#else
#define local_irq_enable_full() local_irq_enable()
#define local_irq_disable_full() local_irq_disable()
#endif
#define local_save_flags(flags) raw_local_save_flags(flags)
/*
......
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