/linux/Documentation/scheduler/ |
A D | sched-arch.rst | 29 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 D | preempt.h | 31 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 D | thread_info.h | 33 u32 need_resched; member 37 u32 need_resched;
|
/linux/arch/mips/kernel/ |
A D | entry.S | 49 # 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 D | idle.c | 41 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 D | checkpoint.c | 310 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 D | coupled.c | 482 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 D | poll_state.c | 27 while (!need_resched()) { in poll_idle()
|
/linux/kernel/entry/ |
A D | kvm.c | 30 } while (ti_work & XFER_TO_GUEST_MODE_WORK || need_resched()); in xfer_to_guest_mode_work()
|
/linux/kernel/sched/ |
A D | idle.c | 180 if (need_resched()) { in cpuidle_idle_call() 282 while (!need_resched()) { in do_idle()
|
/linux/arch/x86/include/asm/ |
A D | mwait.h | 117 if (!need_resched()) in mwait_idle_with_hints()
|
/linux/fs/ |
A D | drop_caches.c | 31 (mapping_empty(inode->i_mapping) && !need_resched())) { in drop_pagecache_sb()
|
/linux/arch/mips/vr41xx/common/ |
A D | pmu.c | 40 if (!need_resched()) in vr41xx_cpu_wait()
|
/linux/kernel/trace/ |
A D | trace_output.c | 444 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 D | acpi_pad.c | 160 while (!need_resched()) { in power_saving_thread() 199 if (unlikely(need_resched())) in power_saving_thread()
|
/linux/kernel/locking/ |
A D | mutex.c | 370 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 D | osq_lock.c | 143 if (smp_cond_load_relaxed(&node->locked, VAL || need_resched() || in osq_lock()
|
A D | rwsem.c | 676 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 D | send.c | 282 if (need_resched()) in wg_packet_tx_worker() 306 if (need_resched()) in wg_packet_encrypt_worker()
|
/linux/drivers/char/hw_random/ |
A D | s390-trng.c | 76 if (need_resched()) { in trng_read()
|
/linux/arch/h8300/kernel/ |
A D | entry.S | 326 need_resched: label 335 bra need_resched:8
|
/linux/arch/arm/mach-omap2/ |
A D | cpuidle34xx.c | 114 if (omap_irq_pending() || need_resched()) in omap3_enter_idle()
|
/linux/drivers/char/ |
A D | mem.c | 102 if (need_resched()) in should_stop_iteration() 498 if (!need_resched()) in read_iter_zero()
|
/linux/kernel/ |
A D | softirq.c | 578 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 D | prng.c | 522 if (need_resched()) { in prng_tdes_read() 605 if (need_resched()) { in prng_sha512_read()
|