Lines Matching refs:S390_lowcore
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()
35 S390_lowcore.preempt_count = PREEMPT_ENABLED; \
40 __atomic_and(~PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); in set_preempt_need_resched()
45 __atomic_or(PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); in clear_preempt_need_resched()
50 return !(READ_ONCE(S390_lowcore.preempt_count) & PREEMPT_NEED_RESCHED); in test_preempt_need_resched()
56 __atomic_add_const(val, &S390_lowcore.preempt_count); in __preempt_count_add()
58 __atomic_add(val, &S390_lowcore.preempt_count); in __preempt_count_add()
68 return __atomic_add(-1, &S390_lowcore.preempt_count) == 1; in __preempt_count_dec_and_test()
73 return unlikely(READ_ONCE(S390_lowcore.preempt_count) == in should_resched()
83 return READ_ONCE(S390_lowcore.preempt_count); in preempt_count()
88 S390_lowcore.preempt_count = pc; in preempt_count_set()
94 S390_lowcore.preempt_count = PREEMPT_ENABLED; \
112 S390_lowcore.preempt_count += val; in __preempt_count_add()
117 S390_lowcore.preempt_count -= val; in __preempt_count_sub()
122 return !--S390_lowcore.preempt_count && tif_need_resched(); in __preempt_count_dec_and_test()