Lines Matching refs:preempt_count
25 static __always_inline int preempt_count(void) in preempt_count() function
27 return raw_cpu_read_4(pcpu_hot.preempt_count) & ~PREEMPT_NEED_RESCHED; in preempt_count()
35 old = raw_cpu_read_4(pcpu_hot.preempt_count); in preempt_count_set()
38 } while (raw_cpu_cmpxchg_4(pcpu_hot.preempt_count, old, new) != old); in preempt_count_set()
47 per_cpu(pcpu_hot.preempt_count, (cpu)) = PREEMPT_DISABLED; \
61 raw_cpu_and_4(pcpu_hot.preempt_count, ~PREEMPT_NEED_RESCHED); in set_preempt_need_resched()
66 raw_cpu_or_4(pcpu_hot.preempt_count, PREEMPT_NEED_RESCHED); in clear_preempt_need_resched()
71 return !(raw_cpu_read_4(pcpu_hot.preempt_count) & PREEMPT_NEED_RESCHED); in test_preempt_need_resched()
80 raw_cpu_add_4(pcpu_hot.preempt_count, val); in __preempt_count_add()
85 raw_cpu_add_4(pcpu_hot.preempt_count, -val); in __preempt_count_sub()
95 return GEN_UNARY_RMWcc("decl", pcpu_hot.preempt_count, e, in __preempt_count_dec_and_test()
104 return unlikely(raw_cpu_read_4(pcpu_hot.preempt_count) == preempt_offset); in should_resched()