Home
last modified time | relevance | path

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

12345

/Linux-v5.15/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.15/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.h33 u32 need_resched; member
37 u32 need_resched;
/Linux-v5.15/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.15/fs/jbd2/
Dcheckpoint.c310 need_resched() || in jbd2_log_do_checkpoint()
444 if (need_resched()) in journal_clean_one_cp_list()
489 if (need_resched()) in journal_shrink_one_cp_list()
548 if (need_resched() || spin_needbreak(&journal->j_list_lock)) in jbd2_journal_shrink_checkpoint_list()
557 if (need_resched() || spin_needbreak(&journal->j_list_lock)) in jbd2_journal_shrink_checkpoint_list()
611 if (need_resched()) in __jbd2_journal_clean_checkpoint_list()
622 if (need_resched()) in __jbd2_journal_clean_checkpoint_list()
/Linux-v5.15/drivers/cpuidle/
Dcoupled.c482 if (need_resched()) { in cpuidle_enter_state_coupled()
524 if (need_resched()) { in cpuidle_enter_state_coupled()
540 if (need_resched()) { in cpuidle_enter_state_coupled()
Dpoll_state.c27 while (!need_resched()) { in poll_idle()
/Linux-v5.15/kernel/entry/
Dkvm.c30 } while (ti_work & XFER_TO_GUEST_MODE_WORK || need_resched()); in xfer_to_guest_mode_work()
/Linux-v5.15/arch/x86/include/asm/
Dmwait.h117 if (!need_resched()) in mwait_idle_with_hints()
/Linux-v5.15/kernel/sched/
Didle.c180 if (need_resched()) { in cpuidle_idle_call()
282 while (!need_resched()) { in do_idle()
/Linux-v5.15/fs/
Ddrop_caches.c31 (mapping_empty(inode->i_mapping) && !need_resched())) { in drop_pagecache_sb()
/Linux-v5.15/arch/mips/vr41xx/common/
Dpmu.c40 if (!need_resched()) in vr41xx_cpu_wait()
/Linux-v5.15/kernel/locking/
Dosq_lock.c143 if (smp_cond_load_relaxed(&node->locked, VAL || need_resched() || in osq_lock()
Dmutex.c364 if (!owner->on_cpu || need_resched() || in mutex_spin_on_owner()
390 if (need_resched()) in mutex_can_spin_on_owner()
497 if (need_resched()) { in mutex_optimistic_spin()
Drwsem.c614 if (need_resched()) { in rwsem_can_spin_on_owner()
700 if (need_resched() || !owner_on_cpu(owner)) { in rwsem_spin_on_owner()
835 if (need_resched()) in rwsem_optimistic_spin()
/Linux-v5.15/drivers/acpi/
Dacpi_pad.c160 while (!need_resched()) { in power_saving_thread()
199 if (unlikely(need_resched())) in power_saving_thread()
/Linux-v5.15/kernel/trace/
Dtrace_output.c453 char need_resched; in trace_print_lat_fmt() local
471 need_resched = 'N'; in trace_print_lat_fmt()
474 need_resched = 'n'; in trace_print_lat_fmt()
477 need_resched = 'p'; in trace_print_lat_fmt()
480 need_resched = '.'; in trace_print_lat_fmt()
493 irqs_off, need_resched, hardsoft_irq); in trace_print_lat_fmt()
/Linux-v5.15/drivers/net/wireguard/
Dsend.c282 if (need_resched()) in wg_packet_tx_worker()
306 if (need_resched()) in wg_packet_encrypt_worker()
/Linux-v5.15/drivers/char/hw_random/
Ds390-trng.c76 if (need_resched()) { in trng_read()
/Linux-v5.15/arch/arm/mach-omap2/
Dcpuidle34xx.c114 if (omap_irq_pending() || need_resched()) in omap3_enter_idle()
Dpm33xx-core.c226 if (omap_irq_pending() || need_resched()) in am33xx_cpu_suspend()
/Linux-v5.15/arch/h8300/kernel/
Dentry.S326 need_resched: label
335 bra need_resched:8
/Linux-v5.15/kernel/
Dsoftirq.c578 if (time_before(jiffies, end) && !need_resched() && in __do_softirq()
619 if ((idle_cpu(cpu) && !need_resched()) || tick_nohz_full_cpu(cpu)) { in tick_irq_exit()
/Linux-v5.15/arch/s390/crypto/
Dprng.c522 if (need_resched()) { in prng_tdes_read()
605 if (need_resched()) { in prng_sha512_read()

12345