Searched refs:preempt_count (Results 1 – 2 of 2) sorted by relevance
18 #define add_preempt_count(val) do { preempt_count() += (val); } while (0)19 #define sub_preempt_count(val) do { preempt_count() -= (val); } while (0)24 #define preempt_count() (current_thread_info()->preempt_count) macro
50 #define hardirq_count() (preempt_count() & HARDIRQ_MASK)51 #define softirq_count() (preempt_count() & SOFTIRQ_MASK)52 #define irq_count() (preempt_count() & (HARDIRQ_MASK | SOFTIRQ_MASK))58 #define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != 0)