/Linux-v5.4/Documentation/scheduler/ |
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-v5.4/arch/arm64/include/asm/ |
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()
|
D | thread_info.h | 36 u32 need_resched; member 40 u32 need_resched;
|
/Linux-v5.4/arch/mips/kernel/ |
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()
|
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
|
/Linux-v5.4/drivers/xen/ |
D | preempt.c | 30 && need_resched())) { in xen_maybe_preempt_hcall()
|
/Linux-v5.4/fs/jbd2/ |
D | checkpoint.c | 319 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/ |
D | coupled.c | 481 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()
|
D | poll_state.c | 27 while (!need_resched()) { in poll_idle()
|
D | cpuidle-pseries.c | 70 while (!need_resched()) { in snooze_loop()
|
/Linux-v5.4/arch/x86/include/asm/ |
D | mwait.h | 117 if (!need_resched()) in mwait_idle_with_hints()
|
/Linux-v5.4/kernel/sched/ |
D | idle.c | 139 if (need_resched()) { in cpuidle_idle_call() 240 while (!need_resched()) { in do_idle()
|
/Linux-v5.4/fs/ |
D | drop_caches.c | 30 (inode->i_mapping->nrpages == 0 && !need_resched())) { in drop_pagecache_sb()
|
/Linux-v5.4/arch/mips/vr41xx/common/ |
D | pmu.c | 40 if (!need_resched()) in vr41xx_cpu_wait()
|
/Linux-v5.4/kernel/trace/ |
D | trace_output.c | 428 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/ |
D | osq_lock.c | 143 if (need_resched() || vcpu_is_preempted(node_cpu(node->prev))) in osq_lock()
|
D | mutex.c | 568 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()
|
D | rwsem.c | 665 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/ |
D | acpi_pad.c | 160 while (!need_resched()) { in power_saving_thread() 199 if (unlikely(need_resched())) in power_saving_thread()
|
/Linux-v5.4/kernel/ |
D | softirq.c | 310 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/ |
D | s390-trng.c | 76 if (need_resched()) { in trng_read()
|
/Linux-v5.4/arch/arm/mach-omap2/ |
D | cpuidle34xx.c | 113 if (omap_irq_pending() || need_resched()) in omap3_enter_idle()
|
/Linux-v5.4/arch/h8300/kernel/ |
D | entry.S | 326 need_resched: label 335 bra need_resched:8
|
/Linux-v5.4/net/bpf/ |
D | test_run.c | 51 if (need_resched()) { in bpf_test_run() 459 if (need_resched()) { in bpf_prog_test_run_flow_dissector()
|
/Linux-v5.4/arch/s390/crypto/ |
D | prng.c | 522 if (need_resched()) { in prng_tdes_read() 605 if (need_resched()) { in prng_sha512_read()
|