| /arch/s390/include/asm/ |
| A D | preempt.h | 24 static __always_inline int preempt_count(void) in preempt_count() function 26 return READ_ONCE(get_lowcore()->preempt_count) & ~PREEMPT_NEED_RESCHED; in preempt_count() 33 old = READ_ONCE(get_lowcore()->preempt_count); in preempt_count_set() 36 } while (!arch_try_cmpxchg(&get_lowcore()->preempt_count, &old, new)); in preempt_count_set() 50 __atomic_and(~PREEMPT_NEED_RESCHED, &get_lowcore()->preempt_count); in set_preempt_need_resched() 55 __atomic_or(PREEMPT_NEED_RESCHED, &get_lowcore()->preempt_count); in clear_preempt_need_resched() 60 return !(READ_ONCE(get_lowcore()->preempt_count) & PREEMPT_NEED_RESCHED); in test_preempt_need_resched() 71 __atomic_add_const(val, &get_lowcore()->preempt_count); in __preempt_count_add() 75 __atomic_add(val, &get_lowcore()->preempt_count); in __preempt_count_add() 90 return __atomic_add_const_and_test(-1, &get_lowcore()->preempt_count); in __preempt_count_dec_and_test() [all …]
|
| /arch/arm64/include/asm/ |
| A D | preempt.h | 11 static inline int preempt_count(void) in preempt_count() function 23 task_thread_info(p)->preempt_count = FORK_PREEMPT_COUNT; \ 27 task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \ 62 u64 pc = READ_ONCE(ti->preempt_count); in __preempt_count_dec_and_test() 74 return !pc || !READ_ONCE(ti->preempt_count); in __preempt_count_dec_and_test() 79 u64 pc = READ_ONCE(current_thread_info()->preempt_count); in should_resched()
|
| A D | thread_info.h | 30 u64 preempt_count; /* 0 => preemptible, <0 => bug */ member 130 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/sh/kernel/ |
| A D | irq.c | 96 irqctx->tinfo.preempt_count = in handle_one_irq() 97 (irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK) | in handle_one_irq() 98 (curctx->tinfo.preempt_count & SOFTIRQ_MASK); in handle_one_irq() 130 irqctx->tinfo.preempt_count = HARDIRQ_OFFSET; in irq_ctx_init() 138 irqctx->tinfo.preempt_count = 0; in irq_ctx_init()
|
| /arch/um/include/asm/ |
| A D | thread_info.h | 22 int preempt_count; /* 0 => preemptable, member 30 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/m68k/include/asm/ |
| A D | thread_info.h | 30 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 39 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/nios2/include/asm/ |
| A D | thread_info.h | 40 int preempt_count; /* 0 => preemptable,<0 => BUG */ member 54 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/hexagon/include/asm/ |
| A D | thread_info.h | 35 int preempt_count; /* 0=>preemptible,<0=>BUG */ member 63 .preempt_count = 1, \
|
| /arch/openrisc/include/asm/ |
| A D | thread_info.h | 47 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member 67 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/arc/include/asm/ |
| A D | thread_info.h | 41 int preempt_count; /* 0 => preemptible, <0 => BUG */ member 56 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/parisc/include/asm/ |
| A D | thread_info.h | 11 int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ member 20 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/riscv/include/asm/ |
| A D | thread_info.h | 55 int preempt_count; /* 0=>preemptible, <0=>BUG */ member 94 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/sparc/include/asm/ |
| A D | thread_info_32.h | 33 int preempt_count; /* 0 => preemptable, member 63 .preempt_count = INIT_PREEMPT_COUNT, \
|
| A D | thread_info_64.h | 47 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 118 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/csky/include/asm/ |
| A D | thread_info.h | 17 int preempt_count; member 27 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/loongarch/include/asm/ |
| A D | thread_info.h | 29 int preempt_count; /* 0 => preemptible, <0 => BUG */ member 43 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/microblaze/include/asm/ |
| A D | thread_info.h | 64 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 77 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/xtensa/include/asm/ |
| A D | thread_info.h | 53 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 90 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/sh/include/asm/ |
| A D | thread_info.h | 32 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 59 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/alpha/include/asm/ |
| A D | thread_info.h | 23 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 38 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/mips/include/asm/ |
| A D | thread_info.h | 30 int preempt_count; /* 0 => preemptible, <0 => BUG */ member 43 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/arm/include/asm/ |
| A D | thread_info.h | 65 int preempt_count; /* 0 => preemptable, <0 => bug */ member 81 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/powerpc/include/asm/ |
| A D | thread_info.h | 55 int preempt_count; /* 0 => preemptable, member 80 .preempt_count = INIT_PREEMPT_COUNT, \
|
| /arch/openrisc/kernel/ |
| A D | asm-offsets.c | 49 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
|
| /arch/x86/include/asm/ |
| A D | preempt.h | 25 static __always_inline int preempt_count(void) in preempt_count() function
|