]> err.no Git - linux-2.6/blobdiff - include/linux/hardirq.h
sched: remove the !PREEMPT_BKL code
[linux-2.6] / include / linux / hardirq.h
index 8d302298a161941ce40c6ed47411627d5f0229f8..2961ec788046627c823feb291d7d522f15982fbf 100644 (file)
 #define in_softirq()           (softirq_count())
 #define in_interrupt()         (irq_count())
 
-#if defined(CONFIG_PREEMPT) && !defined(CONFIG_PREEMPT_BKL)
-# define in_atomic()   ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
-#else
-# define in_atomic()   ((preempt_count() & ~PREEMPT_ACTIVE) != 0)
-#endif
+#define in_atomic()            ((preempt_count() & ~PREEMPT_ACTIVE) != 0)
 
 #ifdef CONFIG_PREEMPT
 # define PREEMPT_CHECK_OFFSET 1