PREEMPT_NEED_RESCHED
#define PREEMPT_ENABLED (PREEMPT_NEED_RESCHED)
#define PREEMPT_ENABLED (0 + PREEMPT_NEED_RESCHED)
new = (old & PREEMPT_NEED_RESCHED) | (pc & ~PREEMPT_NEED_RESCHED);
__atomic_and(~PREEMPT_NEED_RESCHED, &get_lowcore()->preempt_count);
__atomic_or(PREEMPT_NEED_RESCHED, &get_lowcore()->preempt_count);
return !(READ_ONCE(get_lowcore()->preempt_count) & PREEMPT_NEED_RESCHED);
#define PREEMPT_ENABLED (0 + PREEMPT_NEED_RESCHED)
return raw_cpu_read_4(__preempt_count) & ~PREEMPT_NEED_RESCHED;
new = (old & PREEMPT_NEED_RESCHED) |
(pc & ~PREEMPT_NEED_RESCHED);
raw_cpu_and_4(__preempt_count, ~PREEMPT_NEED_RESCHED);
raw_cpu_or_4(__preempt_count, PREEMPT_NEED_RESCHED);
return !(raw_cpu_read_4(__preempt_count) & PREEMPT_NEED_RESCHED);