Lines Matching refs:preempt_count
25 static __always_inline int preempt_count(void)
27 return raw_cpu_read_4(pcpu_hot.preempt_count) & ~PREEMPT_NEED_RESCHED;
35 old = raw_cpu_read_4(pcpu_hot.preempt_count);
38 } while (raw_cpu_cmpxchg_4(pcpu_hot.preempt_count, old, new) != old);
47 per_cpu(pcpu_hot.preempt_count, (cpu)) = PREEMPT_DISABLED; \
61 raw_cpu_and_4(pcpu_hot.preempt_count, ~PREEMPT_NEED_RESCHED);
66 raw_cpu_or_4(pcpu_hot.preempt_count, PREEMPT_NEED_RESCHED);
71 return !(raw_cpu_read_4(pcpu_hot.preempt_count) & PREEMPT_NEED_RESCHED);
75 * The various preempt_count add/sub methods
80 raw_cpu_add_4(pcpu_hot.preempt_count, val);
85 raw_cpu_add_4(pcpu_hot.preempt_count, -val);
90 * a decrement which hits zero means we have no preempt_count and should
95 return GEN_UNARY_RMWcc("decl", pcpu_hot.preempt_count, e,
104 return unlikely(raw_cpu_read_4(pcpu_hot.preempt_count) == preempt_offset);