Lines Matching defs:preempt_count
24 static __always_inline int preempt_count(void)
26 return raw_cpu_read_4(pcpu_hot.preempt_count) & ~PREEMPT_NEED_RESCHED;
33 old = raw_cpu_read_4(pcpu_hot.preempt_count);
37 } while (!raw_cpu_try_cmpxchg_4(pcpu_hot.preempt_count, &old, new));
46 per_cpu(pcpu_hot.preempt_count, (cpu)) = PREEMPT_DISABLED; \
60 raw_cpu_and_4(pcpu_hot.preempt_count, ~PREEMPT_NEED_RESCHED);
65 raw_cpu_or_4(pcpu_hot.preempt_count, PREEMPT_NEED_RESCHED);
70 return !(raw_cpu_read_4(pcpu_hot.preempt_count) & PREEMPT_NEED_RESCHED);
74 * The various preempt_count add/sub methods
79 raw_cpu_add_4(pcpu_hot.preempt_count, val);
84 raw_cpu_add_4(pcpu_hot.preempt_count, -val);
89 * a decrement which hits zero means we have no preempt_count and should
94 return GEN_UNARY_RMWcc("decl", __my_cpu_var(pcpu_hot.preempt_count), e,
103 return unlikely(raw_cpu_read_4(pcpu_hot.preempt_count) == preempt_offset);