/linux/arch/s390/include/asm/ |
A D | preempt.h | 15 static inline int preempt_count(void) in preempt_count() function 25 old = READ_ONCE(S390_lowcore.preempt_count); in preempt_count_set() 28 } while (__atomic_cmpxchg(&S390_lowcore.preempt_count, in preempt_count_set() 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() 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() [all …]
|
/linux/include/asm-generic/ |
A D | preempt.h | 9 static __always_inline int preempt_count(void) in preempt_count() function 11 return READ_ONCE(current_thread_info()->preempt_count); in preempt_count() 16 return ¤t_thread_info()->preempt_count; in preempt_count_ptr() 28 task_thread_info(p)->preempt_count = FORK_PREEMPT_COUNT; \ 32 task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \ 77 return unlikely(preempt_count() == preempt_offset && in should_resched()
|
/linux/arch/arm64/include/asm/ |
A D | preempt.h | 10 static inline int preempt_count(void) in preempt_count() function 22 task_thread_info(p)->preempt_count = FORK_PREEMPT_COUNT; \ 26 task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \ 61 u64 pc = READ_ONCE(ti->preempt_count); in __preempt_count_dec_and_test() 73 return !pc || !READ_ONCE(ti->preempt_count); in __preempt_count_dec_and_test() 78 u64 pc = READ_ONCE(current_thread_info()->preempt_count); in should_resched()
|
/linux/tools/testing/radix-tree/ |
A D | main.c | 244 nr_allocated, preempt_count); in single_thread_tests() 248 nr_allocated, preempt_count); in single_thread_tests() 252 nr_allocated, preempt_count); in single_thread_tests() 256 nr_allocated, preempt_count); in single_thread_tests() 260 nr_allocated, preempt_count); in single_thread_tests() 264 nr_allocated, preempt_count); in single_thread_tests() 269 nr_allocated, preempt_count); in single_thread_tests() 273 nr_allocated, preempt_count); in single_thread_tests() 281 nr_allocated, preempt_count); in single_thread_tests() 324 nr_allocated, preempt_count); in main()
|
/linux/include/linux/ |
A D | preempt.h | 91 unsigned long pc = preempt_count(); in interrupt_context_level() 101 #define nmi_count() (preempt_count() & NMI_MASK) 102 #define hardirq_count() (preempt_count() & HARDIRQ_MASK) 106 # define softirq_count() (preempt_count() & SOFTIRQ_MASK) 174 #define in_atomic() (preempt_count() != 0) 180 #define in_atomic_preempt_off() (preempt_count() != PREEMPT_DISABLE_OFFSET) 215 #define preemptible() (preempt_count() == 0 && !irqs_disabled())
|
/linux/tools/testing/radix-tree/linux/ |
A D | preempt.h | 5 extern int preempt_count; 7 #define preempt_disable() uatomic_inc(&preempt_count) 8 #define preempt_enable() uatomic_dec(&preempt_count)
|
/linux/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()
|
/linux/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
A D | preempt.h | 33 static inline int preempt_count(void) in preempt_count() function 40 return !preempt_count(); in preemptible()
|
/linux/kernel/trace/ |
A D | trace_irqsoff.c | 122 if (!irqs_disabled_flags(*flags) && !preempt_count()) in func_prolog_dec() 439 if (preempt_trace(preempt_count()) || irq_trace()) in start_critical_timings() 447 if (preempt_trace(preempt_count()) || irq_trace()) in stop_critical_timings() 610 if (!preempt_trace(preempt_count()) && irq_trace()) in tracer_hardirqs_on() 617 if (!preempt_trace(preempt_count()) && irq_trace()) in tracer_hardirqs_off() 658 if (preempt_trace(preempt_count()) && !irq_trace()) in tracer_preempt_on() 664 if (preempt_trace(preempt_count()) && !irq_trace()) in tracer_preempt_off()
|
/linux/lib/ |
A D | smp_processor_id.c | 16 if (likely(preempt_count())) in check_preemption_disabled() 46 what1, what2, preempt_count() - 1, current->comm, current->pid); in check_preemption_disabled()
|
/linux/arch/m68k/include/asm/ |
A D | thread_info.h | 29 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 38 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/nios2/include/asm/ |
A D | thread_info.h | 44 int preempt_count; /* 0 => preemptable,<0 => BUG */ member 62 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/arc/include/asm/ |
A D | thread_info.h | 41 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 58 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/um/include/asm/ |
A D | thread_info.h | 23 int preempt_count; /* 0 => preemptable, member 38 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/nds32/include/asm/ |
A D | thread_info.h | 27 __s32 preempt_count; /* 0 => preemptable, <0 => bug */ member 32 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/riscv/include/asm/ |
A D | thread_info.h | 52 int preempt_count; /* 0=>preemptible, <0=>BUG */ member 71 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/hexagon/include/asm/ |
A D | thread_info.h | 39 int preempt_count; /* 0=>preemptible,<0=>BUG */ member 68 .preempt_count = 1, \
|
/linux/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, \
|
/linux/arch/openrisc/include/asm/ |
A D | thread_info.h | 49 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member 73 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/h8300/include/asm/ |
A D | thread_info.h | 33 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 45 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/sparc/include/asm/ |
A D | thread_info_32.h | 33 int preempt_count; /* 0 => preemptable, member 63 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/csky/include/asm/ |
A D | thread_info.h | 17 int preempt_count; member 28 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/xtensa/include/asm/ |
A D | thread_info.h | 53 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 83 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/alpha/include/asm/ |
A D | thread_info.h | 24 int preempt_count; /* 0 => preemptable, <0 => BUG */ member 39 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux/arch/microblaze/include/asm/ |
A D | thread_info.h | 68 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member 82 .preempt_count = INIT_PREEMPT_COUNT, \
|