Lines Matching refs:preempt_count
15 static inline int preempt_count(void) in preempt_count() function
17 return READ_ONCE(S390_lowcore.preempt_count) & ~PREEMPT_NEED_RESCHED; in preempt_count()
25 old = READ_ONCE(S390_lowcore.preempt_count); in preempt_count_set()
28 } while (__atomic_cmpxchg(&S390_lowcore.preempt_count, in preempt_count_set()
34 __atomic_and(~PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); in set_preempt_need_resched()
39 __atomic_or(PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); in clear_preempt_need_resched()
44 return !(READ_ONCE(S390_lowcore.preempt_count) & PREEMPT_NEED_RESCHED); in test_preempt_need_resched()
50 __atomic_add_const(val, &S390_lowcore.preempt_count); in __preempt_count_add()
52 __atomic_add(val, &S390_lowcore.preempt_count); in __preempt_count_add()
62 return __atomic_add(-1, &S390_lowcore.preempt_count) == 1; in __preempt_count_dec_and_test()
67 return unlikely(READ_ONCE(S390_lowcore.preempt_count) == in should_resched()
75 static inline int preempt_count(void) in preempt_count() function
77 return READ_ONCE(S390_lowcore.preempt_count); in preempt_count()
82 S390_lowcore.preempt_count = pc; in preempt_count_set()
100 S390_lowcore.preempt_count += val; in __preempt_count_add()
105 S390_lowcore.preempt_count -= val; in __preempt_count_sub()
110 return !--S390_lowcore.preempt_count && tif_need_resched(); in __preempt_count_dec_and_test()
115 return unlikely(preempt_count() == preempt_offset && in should_resched()