/linux-master/tools/testing/radix-tree/linux/ |
H 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-master/arch/s390/include/asm/ |
H A D | preempt.h | 15 static __always_inline int preempt_count(void) function 17 return READ_ONCE(S390_lowcore.preempt_count) & ~PREEMPT_NEED_RESCHED; 25 old = READ_ONCE(S390_lowcore.preempt_count); 28 } while (__atomic_cmpxchg(&S390_lowcore.preempt_count, 34 __atomic_and(~PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); 39 __atomic_or(PREEMPT_NEED_RESCHED, &S390_lowcore.preempt_count); 44 return !(READ_ONCE(S390_lowcore.preempt_count) & PREEMPT_NEED_RESCHED); 55 __atomic_add_const(val, &S390_lowcore.preempt_count); 59 __atomic_add(val, &S390_lowcore.preempt_count); 69 return __atomic_add(-1, &S390_lowcore.preempt_count) 82 static __always_inline int preempt_count(void) function [all...] |
/linux-master/include/asm-generic/ |
H A D | preempt.h | 9 static __always_inline int preempt_count(void) function 11 return READ_ONCE(current_thread_info()->preempt_count); 16 return ¤t_thread_info()->preempt_count; 28 task_thread_info(p)->preempt_count = FORK_PREEMPT_COUNT; \ 32 task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \ 49 * The various preempt_count add/sub methods 77 return unlikely(preempt_count() == preempt_offset &&
|
/linux-master/arch/x86/include/asm/ |
H A D | preempt.h | 24 static __always_inline int preempt_count(void) function 26 return raw_cpu_read_4(pcpu_hot.preempt_count) & ~PREEMPT_NEED_RESCHED; 33 old = raw_cpu_read_4(pcpu_hot.preempt_count); 37 } while (!raw_cpu_try_cmpxchg_4(pcpu_hot.preempt_count, &old, new)); 46 per_cpu(pcpu_hot.preempt_count, (cpu)) = PREEMPT_DISABLED; \ 60 raw_cpu_and_4(pcpu_hot.preempt_count, ~PREEMPT_NEED_RESCHED); 65 raw_cpu_or_4(pcpu_hot.preempt_count, PREEMPT_NEED_RESCHED); 70 return !(raw_cpu_read_4(pcpu_hot.preempt_count) & PREEMPT_NEED_RESCHED); 74 * The various preempt_count add/sub methods 79 raw_cpu_add_4(pcpu_hot.preempt_count, va [all...] |
H A D | current.h | 19 int preempt_count; member in struct:pcpu_hot::__anon183::__anon184
|
/linux-master/arch/arm64/include/asm/ |
H A D | preempt.h | 11 static inline int preempt_count(void) 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); 70 * preempt_count in case the need_resched flag was cleared by an 74 return !pc || !READ_ONCE(ti->preempt_count); 79 u64 pc = READ_ONCE(current_thread_info()->preempt_count);
|
/linux-master/include/linux/ |
H A D | preempt.h | 7 * preempt_count (used for kernel preemption, interrupt count, etc.) 68 * Initial preempt_count value; reflects the preempt_count schedule invariant 71 * preempt_count() == 2*PREEMPT_DISABLE_OFFSET 78 /* preempt_count() and related functions, depends on PREEMPT_NEED_RESCHED */ 92 unsigned long pc = preempt_count(); 103 * These macro definitions avoid redundant invocations of preempt_count() 105 * preempt_count() is commonly implemented with READ_ONCE(). 108 #define nmi_count() (preempt_count() & NMI_MASK) 109 #define hardirq_count() (preempt_count() [all...] |
/linux-master/arch/openrisc/include/asm/ |
H A D | thread_info.h | 47 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member in struct:thread_info 59 * preempt_count needs to be 1 initially, until the scheduler is functional. 67 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/hexagon/include/asm/ |
H A D | thread_info.h | 35 int preempt_count; /* 0=>preemptible,<0=>BUG */ member in struct:thread_info 63 .preempt_count = 1, \
|
/linux-master/arch/um/include/asm/ |
H A D | thread_info.h | 23 int preempt_count; /* 0 => preemptable, member in struct:thread_info 35 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/lib/ |
H A D | smp_processor_id.c | 16 if (likely(preempt_count())) 46 what1, what2, preempt_count() - 1, current->comm, current->pid);
|
/linux-master/arch/m68k/include/asm/ |
H A D | thread_info.h | 29 int preempt_count; /* 0 => preemptable, <0 => BUG */ member in struct:thread_info 38 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/nios2/include/asm/ |
H A D | thread_info.h | 40 int preempt_count; /* 0 => preemptable,<0 => BUG */ member in struct:thread_info 47 * preempt_count needs to be 1 initially, until the scheduler is functional. 54 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/arc/include/asm/ |
H A D | thread_info.h | 41 int preempt_count; /* 0 => preemptable, <0 => BUG */ member in struct:thread_info 56 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/tools/testing/radix-tree/ |
H A D | main.c | 244 nr_allocated, preempt_count); 248 nr_allocated, preempt_count); 252 nr_allocated, preempt_count); 256 nr_allocated, preempt_count); 260 nr_allocated, preempt_count); 264 nr_allocated, preempt_count); 269 nr_allocated, preempt_count); 273 nr_allocated, preempt_count); 281 nr_allocated, preempt_count); 324 nr_allocated, preempt_count); [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | thread_info_32.h | 33 int preempt_count; /* 0 => preemptable, member in struct:thread_info 63 .preempt_count = INIT_PREEMPT_COUNT, \ 88 #define TI_PREEMPT 0x10 /* preempt_count */
|
/linux-master/arch/parisc/include/asm/ |
H A D | thread_info.h | 11 int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ member in struct:thread_info 20 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/microblaze/include/asm/ |
H A D | thread_info.h | 64 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member in struct:thread_info 77 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/csky/include/asm/ |
H A D | thread_info.h | 17 int preempt_count; member in struct:thread_info 27 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/xtensa/include/asm/ |
H A D | thread_info.h | 53 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member in struct:thread_info 90 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/riscv/include/asm/ |
H A D | thread_info.h | 49 int preempt_count; /* 0=>preemptible, <0=>BUG */ member in struct:thread_info 76 * preempt_count needs to be 1 initially, until the scheduler is functional. 81 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/loongarch/include/asm/ |
H A D | thread_info.h | 29 int preempt_count; /* 0 => preemptible, <0 => BUG */ member in struct:thread_info 43 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/sh/kernel/ |
H A D | irq.c | 93 * Copy the softirq bits in preempt_count so that the 96 irqctx->tinfo.preempt_count = 97 (irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK) | 98 (curctx->tinfo.preempt_count & SOFTIRQ_MASK); 130 irqctx->tinfo.preempt_count = HARDIRQ_OFFSET; 138 irqctx->tinfo.preempt_count = 0;
|
/linux-master/arch/alpha/include/asm/ |
H A D | thread_info.h | 23 int preempt_count; /* 0 => preemptable, <0 => BUG */ member in struct:thread_info 38 .preempt_count = INIT_PREEMPT_COUNT, \
|
/linux-master/arch/sh/include/asm/ |
H A D | thread_info.h | 32 int preempt_count; /* 0 => preemptable, <0 => BUG */ member in struct:thread_info 59 .preempt_count = INIT_PREEMPT_COUNT, \
|