Home
last modified time | relevance | path

Searched refs:preempt_count (Results 1 – 25 of 71) sorted by relevance

123

/linux/include/linux/
H A Dpreempt.h7 * 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(); in interrupt_context_level()
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/include/asm-generic/
H A Dpreempt.h9 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 &current_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; \
49 * The various preempt_count add/sub methods
77 return unlikely(preempt_count() == preempt_offset && in should_resched()
/linux/arch/arm64/include/asm/
H A Dpreempt.h11 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()
70 * preempt_count in case the need_resched flag was cleared by an 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()
H A Dthread_info.h30 u64 preempt_count; /* 0 => preemptible, <0 => bug */ member
130 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/tools/testing/radix-tree/
H A Dmain.c244 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/tools/testing/shared/linux/
H A Dpreempt.h5 extern int preempt_count;
7 #define preempt_disable() uatomic_inc(&preempt_count)
8 #define preempt_enable() uatomic_dec(&preempt_count)
/linux/arch/sh/kernel/
H A Dirq.c93 * Copy the softirq bits in preempt_count so that the in handle_one_irq()
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/lib/
H A Dsmp_processor_id.c16 if (likely(preempt_count())) in check_preemption_disabled()
44 what1, what2, preempt_count() - 1, current->comm, current->pid); in check_preemption_disabled()
/linux/arch/um/include/asm/
H A Dthread_info.h22 int preempt_count; /* 0 => preemptable, member
30 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/nios2/include/asm/
H A Dthread_info.h40 int preempt_count; /* 0 => preemptable,<0 => BUG */ member
47 * preempt_count needs to be 1 initially, until the scheduler is functional.
54 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/m68k/include/asm/
H A Dthread_info.h30 int preempt_count; /* 0 => preemptable, <0 => BUG */ member
39 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/hexagon/include/asm/
H A Dthread_info.h35 int preempt_count; /* 0=>preemptible,<0=>BUG */ member
63 .preempt_count = 1, \
/linux/arch/arc/include/asm/
H A Dthread_info.h41 int preempt_count; /* 0 => preemptible, <0 => BUG */ member
56 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/openrisc/include/asm/
H A Dthread_info.h47 __s32 preempt_count; /* 0 => preemptable, <0 => BUG */ member
59 * preempt_count needs to be 1 initially, until the scheduler is functional.
67 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/parisc/include/asm/
H A Dthread_info.h11 int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ member
20 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/riscv/include/asm/
H A Dthread_info.h55 int preempt_count; /* 0=>preemptible, <0=>BUG */ member
89 * preempt_count needs to be 1 initially, until the scheduler is functional.
94 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/sparc/include/asm/
H A Dthread_info_32.h33 int preempt_count; /* 0 => preemptable, member
63 .preempt_count = INIT_PREEMPT_COUNT, \
88 #define TI_PREEMPT 0x10 /* preempt_count */
/linux/arch/csky/include/asm/
H A Dthread_info.h17 int preempt_count; member
27 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/kernel/trace/
H A Dtrace_irqsoff.c122 if (!irqs_disabled_flags(*flags) && !preempt_count()) in func_prolog_dec()
470 if (preempt_trace(preempt_count()) || irq_trace()) in start_critical_timings()
478 if (preempt_trace(preempt_count()) || irq_trace()) in stop_critical_timings()
641 if (!preempt_trace(preempt_count()) && irq_trace()) in tracer_hardirqs_on()
648 if (!preempt_trace(preempt_count()) && irq_trace()) in tracer_hardirqs_off()
689 if (preempt_trace(preempt_count()) && !irq_trace()) in tracer_preempt_on()
695 if (preempt_trace(preempt_count()) && !irq_trace()) in tracer_preempt_off()
/linux/arch/microblaze/include/asm/
H A Dthread_info.h64 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member
77 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/xtensa/include/asm/
H A Dthread_info.h53 __s32 preempt_count; /* 0 => preemptable,< 0 => BUG*/ member
90 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/sh/include/asm/
H A Dthread_info.h32 int preempt_count; /* 0 => preemptable, <0 => BUG */ member
59 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/alpha/include/asm/
H A Dthread_info.h23 int preempt_count; /* 0 => preemptable, <0 => BUG */ member
38 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/mips/include/asm/
H A Dthread_info.h30 int preempt_count; /* 0 => preemptible, <0 => BUG */ member
43 .preempt_count = INIT_PREEMPT_COUNT, \
/linux/arch/arm/include/asm/
H A Dthread_info.h65 int preempt_count; /* 0 => preemptable, <0 => bug */ member
81 .preempt_count = INIT_PREEMPT_COUNT, \

123