Home
last modified time | relevance | path

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

/include/asm-generic/
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; \
77 return unlikely(preempt_count() == preempt_offset && in should_resched()
/include/linux/
Dpreempt.h92 unsigned long pc = preempt_count(); in interrupt_context_level()
108 #define nmi_count() (preempt_count() & NMI_MASK)
109 #define hardirq_count() (preempt_count() & HARDIRQ_MASK)
112 # define irq_count() ((preempt_count() & (NMI_MASK | HARDIRQ_MASK)) | softirq_count())
114 # define softirq_count() (preempt_count() & SOFTIRQ_MASK)
115 # define irq_count() (preempt_count() & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_MASK))
130 # define in_task() (!((preempt_count() & (NMI_MASK | HARDIRQ_MASK)) | in_serving_softirq()))
132 # define in_task() (!(preempt_count() & (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_OFFSET)))
186 #define in_atomic() (preempt_count() != 0)
192 #define in_atomic_preempt_off() (preempt_count() != PREEMPT_DISABLE_OFFSET)
[all …]
Dbit_spinlock.h94 return preempt_count(); in bit_spin_is_locked()
Dftrace.h475 WARN_ON_ONCE(!preempt_count() || !irqs_disabled()); in stack_tracer_disable()
488 WARN_ON_ONCE(!preempt_count() || !irqs_disabled()); in stack_tracer_enable()
Dlockdep.h605 (preempt_count() != 0 || \
613 (preempt_count() == 0 && \
Dtrace_events.h71 unsigned char preempt_count; member
161 entry->preempt_count = trace_ctx & 0xff; in tracing_generic_entry_update()