Home
last modified time | relevance | path

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

12345

/linux/Documentation/scheduler/
A 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/arch/arm64/include/asm/
A 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()
A Dthread_info.h33 u32 need_resched; member
37 u32 need_resched;
/linux/arch/mips/kernel/
A 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
A Didle.c41 if (!need_resched()) in r39xx_wait()
61 if (!need_resched()) in r4k_wait_irqoff()
76 if (!need_resched()) in rm7k_wait_irqoff()
/linux/fs/jbd2/
A 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/drivers/cpuidle/
A 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()
A Dpoll_state.c27 while (!need_resched()) { in poll_idle()
/linux/kernel/entry/
A Dkvm.c30 } while (ti_work & XFER_TO_GUEST_MODE_WORK || need_resched()); in xfer_to_guest_mode_work()
/linux/kernel/sched/
A Didle.c180 if (need_resched()) { in cpuidle_idle_call()
282 while (!need_resched()) { in do_idle()
/linux/arch/x86/include/asm/
A Dmwait.h117 if (!need_resched()) in mwait_idle_with_hints()
/linux/fs/
A Ddrop_caches.c31 (mapping_empty(inode->i_mapping) && !need_resched())) { in drop_pagecache_sb()
/linux/arch/mips/vr41xx/common/
A Dpmu.c40 if (!need_resched()) in vr41xx_cpu_wait()
/linux/kernel/trace/
A Dtrace_output.c444 char need_resched; in trace_print_lat_fmt() local
462 need_resched = 'N'; in trace_print_lat_fmt()
465 need_resched = 'n'; in trace_print_lat_fmt()
468 need_resched = 'p'; in trace_print_lat_fmt()
471 need_resched = '.'; in trace_print_lat_fmt()
484 irqs_off, need_resched, hardsoft_irq); in trace_print_lat_fmt()
/linux/drivers/acpi/
A Dacpi_pad.c160 while (!need_resched()) { in power_saving_thread()
199 if (unlikely(need_resched())) in power_saving_thread()
/linux/kernel/locking/
A Dmutex.c370 if (!owner->on_cpu || need_resched() || in mutex_spin_on_owner()
397 if (need_resched()) in mutex_can_spin_on_owner()
508 if (need_resched()) { in mutex_optimistic_spin()
A Dosq_lock.c143 if (smp_cond_load_relaxed(&node->locked, VAL || need_resched() || in osq_lock()
A Drwsem.c676 if (need_resched()) { in rwsem_can_spin_on_owner()
750 if (need_resched() || !owner_on_cpu(owner)) { in rwsem_spin_on_owner()
884 if (need_resched()) in rwsem_optimistic_spin()
/linux/drivers/net/wireguard/
A Dsend.c282 if (need_resched()) in wg_packet_tx_worker()
306 if (need_resched()) in wg_packet_encrypt_worker()
/linux/drivers/char/hw_random/
A Ds390-trng.c76 if (need_resched()) { in trng_read()
/linux/arch/h8300/kernel/
A Dentry.S326 need_resched: label
335 bra need_resched:8
/linux/arch/arm/mach-omap2/
A Dcpuidle34xx.c114 if (omap_irq_pending() || need_resched()) in omap3_enter_idle()
/linux/drivers/char/
A Dmem.c102 if (need_resched()) in should_stop_iteration()
498 if (!need_resched()) in read_iter_zero()
/linux/kernel/
A Dsoftirq.c578 if (time_before(jiffies, end) && !need_resched() && in __do_softirq()
620 if ((idle_cpu(cpu) && !need_resched()) || tick_nohz_full_cpu(cpu)) { in tick_irq_exit()
/linux/arch/s390/crypto/
A Dprng.c522 if (need_resched()) { in prng_tdes_read()
605 if (need_resched()) { in prng_sha512_read()

Completed in 48 milliseconds

12345