Home
last modified time | relevance | path

Searched refs:need_resched (Results 1 – 25 of 99) sorted by relevance

1234

/Linux-v5.4/Documentation/scheduler/
Dsched-arch.rst29 2. need_resched/TIF_NEED_RESCHED is only ever set, and will never
31 threads need only ever query need_resched, and may never set or
34 3. When cpu_idle finds (need_resched() == 'true'), it should call
38 need_resched is if we are about to sleep the processor until
40 need_resched, it prevents losing an interrupt):
45 if (!need_resched()) {
52 need an interrupt to wake them up when need_resched goes high.
53 In other words, they must be periodically polling need_resched,
59 barrier issued (followed by a test of need_resched with
/Linux-v5.4/arch/arm64/include/asm/
Dpreempt.h31 current_thread_info()->preempt.need_resched = 0; in set_preempt_need_resched()
36 current_thread_info()->preempt.need_resched = 1; in clear_preempt_need_resched()
41 return !current_thread_info()->preempt.need_resched; in test_preempt_need_resched()
Dthread_info.h36 u32 need_resched; member
40 u32 need_resched;
/Linux-v5.4/arch/mips/kernel/
Didle.c41 if (!need_resched()) in r39xx_wait()
61 if (!need_resched()) in r4k_wait_irqoff()
76 if (!need_resched()) in rm7k_wait_irqoff()
Dentry.S49 # interrupt setting need_resched
85 local_irq_disable # make sure need_resched and
129 local_irq_disable # make sure need_resched and
151 local_irq_disable # make sure need_resched doesn't
/Linux-v5.4/drivers/xen/
Dpreempt.c30 && need_resched())) { in xen_maybe_preempt_hcall()
/Linux-v5.4/fs/jbd2/
Dcheckpoint.c319 need_resched() || in jbd2_log_do_checkpoint()
461 if (need_resched()) in journal_clean_one_cp_list()
497 if (need_resched()) in __jbd2_journal_clean_checkpoint_list()
508 if (need_resched()) in __jbd2_journal_clean_checkpoint_list()
/Linux-v5.4/drivers/cpuidle/
Dcoupled.c481 if (need_resched()) { in cpuidle_enter_state_coupled()
523 if (need_resched()) { in cpuidle_enter_state_coupled()
539 if (need_resched()) { in cpuidle_enter_state_coupled()
Dpoll_state.c27 while (!need_resched()) { in poll_idle()
Dcpuidle-pseries.c70 while (!need_resched()) { in snooze_loop()
/Linux-v5.4/arch/x86/include/asm/
Dmwait.h117 if (!need_resched()) in mwait_idle_with_hints()
/Linux-v5.4/kernel/sched/
Didle.c139 if (need_resched()) { in cpuidle_idle_call()
240 while (!need_resched()) { in do_idle()
/Linux-v5.4/fs/
Ddrop_caches.c30 (inode->i_mapping->nrpages == 0 && !need_resched())) { in drop_pagecache_sb()
/Linux-v5.4/arch/mips/vr41xx/common/
Dpmu.c40 if (!need_resched()) in vr41xx_cpu_wait()
/Linux-v5.4/kernel/trace/
Dtrace_output.c428 char need_resched; in trace_print_lat_fmt() local
446 need_resched = 'N'; in trace_print_lat_fmt()
449 need_resched = 'n'; in trace_print_lat_fmt()
452 need_resched = 'p'; in trace_print_lat_fmt()
455 need_resched = '.'; in trace_print_lat_fmt()
468 irqs_off, need_resched, hardsoft_irq); in trace_print_lat_fmt()
/Linux-v5.4/kernel/locking/
Dosq_lock.c143 if (need_resched() || vcpu_is_preempted(node_cpu(node->prev))) in osq_lock()
Dmutex.c568 if (!owner->on_cpu || need_resched() || in mutex_spin_on_owner()
594 if (need_resched()) in mutex_can_spin_on_owner()
701 if (need_resched()) { in mutex_optimistic_spin()
Drwsem.c665 if (need_resched()) { in rwsem_can_spin_on_owner()
751 if (need_resched() || !owner_on_cpu(owner)) { in rwsem_spin_on_owner()
889 if (need_resched()) in rwsem_optimistic_spin()
/Linux-v5.4/drivers/acpi/
Dacpi_pad.c160 while (!need_resched()) { in power_saving_thread()
199 if (unlikely(need_resched())) in power_saving_thread()
/Linux-v5.4/kernel/
Dsoftirq.c310 if (time_before(jiffies, end) && !need_resched() && in __do_softirq()
393 if ((idle_cpu(cpu) && !need_resched()) || tick_nohz_full_cpu(cpu)) { in tick_irq_exit()
/Linux-v5.4/drivers/char/hw_random/
Ds390-trng.c76 if (need_resched()) { in trng_read()
/Linux-v5.4/arch/arm/mach-omap2/
Dcpuidle34xx.c113 if (omap_irq_pending() || need_resched()) in omap3_enter_idle()
/Linux-v5.4/arch/h8300/kernel/
Dentry.S326 need_resched: label
335 bra need_resched:8
/Linux-v5.4/net/bpf/
Dtest_run.c51 if (need_resched()) { in bpf_test_run()
459 if (need_resched()) { in bpf_prog_test_run_flow_dissector()
/Linux-v5.4/arch/s390/crypto/
Dprng.c522 if (need_resched()) { in prng_tdes_read()
605 if (need_resched()) { in prng_sha512_read()

1234