Commit a6794754 authored by Ian Wienand's avatar Ian Wienand Committed by David Mosberger

[PATCH] ia64: hardirq.h should include smp_lock.h when preempt enabled

As in_atomic() uses kernel_locked() which is in smp_lock.h.
parent c4c3f3ff
......@@ -89,6 +89,7 @@
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
#ifdef CONFIG_PREEMPT
# include <linux/smp_lock.h>
# define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
......
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