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

/linux-4.1.27/arch/x86/include/asm/
H A Dmwait.h43 * which can obviate IPI to trigger checking of need_resched.
44 * We execute MONITOR against need_resched and enter optimized wait state
45 * through MWAIT. Whenever someone changes need_resched, we would be woken
61 if (!need_resched()) mwait_idle_with_hints()
/linux-4.1.27/arch/mips/kernel/
H A Dentry.S48 # interrupt setting need_resched
65 need_resched: label
73 b need_resched
86 local_irq_disable # make sure need_resched and
142 local_irq_disable # make sure need_resched and
160 local_irq_disable # make sure need_resched doesn't
H A Didle.c44 if (!need_resched()) r39xx_wait()
56 * This variant is preferable as it allows testing need_resched and going to
64 if (!need_resched()) r4k_wait_irqoff()
79 if (!need_resched()) rm7k_wait_irqoff()
/linux-4.1.27/drivers/xen/
H A Dpreempt.c34 && need_resched())) { xen_maybe_preempt_hcall()
H A Dballoon.c503 if (need_resched()) balloon_process()
/linux-4.1.27/kernel/sched/
H A Didle.c90 if (need_resched()) { cpuidle_idle_call()
215 * the polling bit set, then setting need_resched is cpu_idle_loop()
222 while (!need_resched()) { cpu_idle_loop()
268 * if need_resched is set while polling is set. That cpu_idle_loop()
H A Dcore.c547 * On UP this means the setting of the need_resched flag, on SMP it
672 if (idle_cpu(cpu) && !need_resched()) got_nohz_idle_kick()
2736 * WARNING: all callers must re-check need_resched() afterward and reschedule
2834 } while (need_resched()); schedule()
2881 } while (need_resched()); preempt_schedule_common()
2939 } while (need_resched()); preempt_schedule_context()
2973 } while (need_resched()); preempt_schedule_irq()
H A Dfair.c7651 if (need_resched()) for_each_cpu()
/linux-4.1.27/arch/m32r/kernel/
H A Dentry.S165 ; setting need_resched or sigpending
179 need_resched: label
180 ld r9, @(TI_FLAGS, r8) ; need_resched set ?
187 bra need_resched
213 ; setting need_resched or sigpending
230 ; setting need_resched or sigpending
/linux-4.1.27/include/net/
H A Dbusy_poll.h64 !need_resched() && !signal_pending(current); sk_can_busy_loop()
112 !need_resched() && !busy_loop_timeout(end_time)); sk_busy_loop()
/linux-4.1.27/kernel/trace/
H A Dtrace_output.c432 char need_resched; trace_print_lat_fmt() local
448 need_resched = 'N'; trace_print_lat_fmt()
451 need_resched = 'n'; trace_print_lat_fmt()
454 need_resched = 'p'; trace_print_lat_fmt()
457 need_resched = '.'; trace_print_lat_fmt()
468 irqs_off, need_resched, hardsoft_irq); trace_print_lat_fmt()
/linux-4.1.27/arch/sh/kernel/
H A Dentry-common.S100 need_resched: label
102 tst #_TIF_NEED_RESCHED, r0 ! need_resched set?
114 bra need_resched
/linux-4.1.27/drivers/acpi/
H A Dacpi_pad.c168 while (!need_resched()) { power_saving_thread()
203 /* If an external event has set the need_resched flag, then power_saving_thread()
207 if (unlikely(need_resched())) power_saving_thread()
H A Dprocessor_idle.c34 #include <linux/sched.h> /* need_resched() */
/linux-4.1.27/arch/mips/vr41xx/common/
H A Dpmu.c52 if (!need_resched()) vr41xx_cpu_wait()
/linux-4.1.27/kernel/locking/
H A Drwsem-xadd.c303 if (need_resched()) rwsem_can_spin_on_owner()
342 /* abort spinning when need_resched or owner is not running */ rwsem_spin_on_owner()
343 if (!owner->on_cpu || need_resched()) { rwsem_spin_on_owner()
395 if (!owner && (need_resched() || rt_task(current))) rwsem_optimistic_spin()
H A Dosq_lock.c116 if (need_resched()) osq_lock()
H A Dmutex.c239 if (!owner->on_cpu || need_resched()) { mutex_spin_on_owner()
259 if (need_resched()) mutex_can_spin_on_owner()
371 if (!owner && (need_resched() || rt_task(task))) mutex_optimistic_spin()
386 * If we fell out of the spin path because of need_resched(), mutex_optimistic_spin()
390 if (need_resched()) { mutex_optimistic_spin()
/linux-4.1.27/drivers/cpuidle/
H A Dcpuidle-powernv.c41 while (!need_resched()) { snooze_loop()
H A Dcpuidle-pseries.c66 while (!need_resched()) { snooze_loop()
H A Dcoupled.c409 * need_resched() must be tested after this function returns to make sure
469 if (need_resched()) { cpuidle_enter_state_coupled()
511 if (need_resched()) { cpuidle_enter_state_coupled()
527 if (need_resched()) { cpuidle_enter_state_coupled()
H A Ddriver.c186 while (!need_resched()) poll_idle()
/linux-4.1.27/fs/jbd/
H A Dcheckpoint.c410 if (!retry && (need_resched() || log_do_checkpoint()
588 if (need_resched()) journal_clean_one_cp_list()
627 if (need_resched()) __journal_clean_checkpoint_list()
638 if (need_resched()) __journal_clean_checkpoint_list()
H A Dcommit.c278 if (need_resched() || spin_needbreak(&journal->j_list_lock)) { journal_submit_data_buffers()
/linux-4.1.27/fs/jbd2/
H A Dcheckpoint.c310 need_resched() || jbd2_log_do_checkpoint()
454 if (need_resched()) journal_clean_one_cp_list()
490 if (need_resched()) __jbd2_journal_clean_checkpoint_list()
501 if (need_resched()) __jbd2_journal_clean_checkpoint_list()
/linux-4.1.27/arch/mn10300/kernel/
H A Dentry.S90 # make sure we don't miss an interrupt setting need_resched or
128 # make sure we don't miss an interrupt setting need_resched or
183 need_resched: label
191 jmp need_resched
H A Dprocess.c55 * to poll the ->work.need_resched flag instead of waiting for the
/linux-4.1.27/mm/
H A Dcompaction.c336 * need_resched() becoming true. If scheduling is needed, async compaction
342 * async compaction due to need_resched()
359 if (need_resched()) { compact_unlock_should_abort()
372 * need_resched() and either schedules in sync compaction or aborts async
382 if (need_resched()) { compact_should_abort()
421 * pending or async compaction detects need_resched() isolate_freepages_block()
1475 * need_resched() or lock contention
1529 * need_resched() and the watermarks were ok thanks to try_to_compact_pages()
1532 * need_resched() contention anyway (this will not try_to_compact_pages()
1551 * We might have stopped compacting due to need_resched() in try_to_compact_pages()
1553 * case do not try further zones and signal need_resched() try_to_compact_pages()
H A Dshmem.c1859 if (need_resched()) { shmem_tag_pins()
1929 if (need_resched()) { shmem_wait_for_pins()
H A Dmemory.c918 if (need_resched() || copy_pte_range()
H A Dpage_alloc.c2801 * If compaction was aborted due to need_resched(), we do not __alloc_pages_slowpath()
/linux-4.1.27/arch/score/kernel/
H A Dentry.S268 need_resched: label
277 j need_resched
/linux-4.1.27/arch/x86/kernel/
H A Dentry_32.S348 # setting need_resched or sigpending
361 need_resched: label
367 jmp need_resched
511 # setting need_resched or sigpending
603 # setting need_resched or sigpending
H A Dprocess.c464 if (!need_resched()) mwait_idle()
H A Dapm_32.c845 if (!need_resched()) { apm_do_idle()
935 while (!need_resched()) { apm_cpu_idle()
/linux-4.1.27/arch/c6x/kernel/
H A Dentry.S266 ;; make sure we don't miss an interrupt setting need_resched or
308 ;; make sure we don't miss an interrupt setting need_resched or
372 ;; make sure we don't miss an interrupt setting need_resched or
/linux-4.1.27/kernel/
H A Dsoftirq.c183 * but break the loop if need_resched() is set or after 2 ms.
290 if (time_before(jiffies, end) && !need_resched() && __do_softirq()
370 if ((idle_cpu(cpu) && !need_resched()) || tick_nohz_full_cpu(cpu)) { tick_irq_exit()
H A Dsignal.c687 * No need to set need_resched since signal event passing
/linux-4.1.27/arch/sparc/include/asm/
H A Dthread_info_64.h160 * user: need_resched, notify_resume, sigpending, wsaved
/linux-4.1.27/arch/um/kernel/
H A Dprocess.c93 if (need_resched()) interrupt_end()
/linux-4.1.27/arch/cris/arch-v10/kernel/
H A Dentry.S64 btstq TIF_NEED_RESCHED, $r10 ; Check if need_resched is set
105 di ; so need_resched and sigpending don't change
193 di ; make sure need_resched and sigpending don't change
261 bmi _work_resched ; current->work.need_resched
/linux-4.1.27/arch/arm/mach-omap2/
H A Dcpuidle34xx.c115 if (omap_irq_pending() || need_resched()) omap3_enter_idle()
/linux-4.1.27/kernel/rcu/
H A Dtiny.c201 cb_count, 0, need_resched(), __rcu_process_callbacks()
H A Dtree.c2584 need_resched(), is_idle_task(current), rcu_do_batch()
2617 (need_resched() || rcu_do_batch()
2623 trace_rcu_batch_end(rsp->name, count, !!list, need_resched(), rcu_do_batch()
/linux-4.1.27/arch/s390/crypto/
H A Dprng.c512 if (need_resched()) { prng_tdes_read()
597 if (need_resched()) { prng_sha512_read()
/linux-4.1.27/drivers/char/hw_random/
H A Dcore.c278 if (need_resched()) rng_dev_read()
/linux-4.1.27/arch/blackfin/kernel/
H A Dprocess.c62 if (!need_resched()) arch_cpu_idle()
/linux-4.1.27/arch/hexagon/kernel/
H A Dvm_entry.S282 * to jump to a need_resched kind of block.
/linux-4.1.27/security/keys/
H A Dgc.c258 if (spin_is_contended(&key_serial_lock) || need_resched()) key_garbage_collector()
/linux-4.1.27/arch/cris/arch-v32/kernel/
H A Dentry.S59 btstq TIF_NEED_RESCHED, $r10 ; Check if need_resched is set.
117 di ; So need_resched and sigpending don't change.
232 di ; Make sure need_resched and sigpending don't change.
/linux-4.1.27/drivers/media/i2c/
H A Dvpx3220.c98 if (need_resched()) vpx3220_fp_status()
/linux-4.1.27/arch/alpha/kernel/
H A Dentry.S490 /* Make sure need_resched and sigpending don't change between
/linux-4.1.27/fs/btrfs/
H A Dinode-map.c77 if (need_resched() || caching_kthread()
H A Dextent_io.c706 if (start <= end && state && !need_resched()) clear_extent_bit()
910 !need_resched()) __set_extent_bit()
956 !need_resched()) __set_extent_bit()
1140 !need_resched()) convert_extent_bit()
1181 !need_resched()) convert_extent_bit()
H A Dextent-tree.c443 if (need_resched() || caching_thread()
H A Dinode.c5031 if (need_resched()) { evict_inode_truncate_pages()
/linux-4.1.27/net/ipv4/
H A Dinetpeer.c101 if (need_resched()) inetpeer_gc_worker()
/linux-4.1.27/fs/
H A Dselect.c509 if (can_busy_loop && !need_resched()) { do_select()
841 if (can_busy_loop && !need_resched()) { do_poll()
H A Ddcache.c1376 ret = need_resched() ? D_WALK_QUIT : D_WALK_NORETRY; select_collect()
/linux-4.1.27/drivers/media/pci/cx88/
H A Dcx88.h603 #define cx_wait(d) { if (need_resched()) schedule(); else udelay(d); }
/linux-4.1.27/drivers/media/pci/saa7134/
H A Dsaa7134-tvaudio.c992 if (need_resched()) saa7134_tvaudio_init()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dni_pcidio.c818 if (need_resched()) pci_6534_load_fpga()
/linux-4.1.27/drivers/parport/
H A Dieee1284.c135 if (need_resched()) parport_poll_peripheral()
H A Dieee1284_ops.c139 && need_resched()) parport_ieee1284_write_compat()
H A Dparport_pc.c497 if (need_resched() && time_before(jiffies, expire)) parport_pc_fifo_write_block_pio()
524 if (need_resched() && parport_pc_fifo_write_block_pio()
/linux-4.1.27/arch/x86/math-emu/
H A Dfpu_entry.c569 if (FPU_lookahead && !need_resched()) { math_emulate()
/linux-4.1.27/arch/sparc/kernel/
H A Dprocess_64.c77 if (!need_resched() && !cpu_is_offline(smp_processor_id())) arch_cpu_idle()
/linux-4.1.27/arch/avr32/kernel/
H A Dentry-avr32b.S225 setting need_resched or sigpending
/linux-4.1.27/net/sched/
H A Dsch_generic.c243 if (quota <= 0 || need_resched()) { __qdisc_run()
/linux-4.1.27/arch/frv/kernel/
H A Dentry.S930 # make sure we don't miss an interrupt setting need_resched or sigpending between
1095 # make sure we don't miss an interrupt setting need_resched or sigpending between
/linux-4.1.27/arch/x86/kvm/
H A Dmmu.c4402 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) kvm_mmu_slot_remove_write_access()
4483 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) { kvm_mmu_zap_collapsible_sptes()
4518 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) kvm_mmu_slot_leaf_clear_dirty()
4561 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) kvm_mmu_slot_largepage_remove_write_access()
4598 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) kvm_mmu_slot_set_dirty()
H A Dx86.c6337 || need_resched() || signal_pending(current)) { vcpu_enter_guest()
6508 if (need_resched()) { vcpu_run()
H A Dvmx.c5950 if (need_resched()) handle_invalid_guest_state()
/linux-4.1.27/arch/sh/kernel/cpu/sh5/
H A Dentry.S903 need_resched: label
918 pta need_resched, tr1
/linux-4.1.27/arch/ia64/kernel/
H A Dentry.S700 * work.need_resched etc. mustn't get changed by this CPU before it returns to
844 * work.need_resched etc. mustn't get changed by this CPU before it returns to
/linux-4.1.27/drivers/char/
H A Dlp.c379 } else if (need_resched()) lp_write()
H A Drandom.c1199 if (large_request && need_resched()) { extract_entropy_user()
/linux-4.1.27/include/trace/events/
H A Drcu.h589 * queued, the fourth argument (nr) is the return value of need_resched(),
/linux-4.1.27/arch/mips/kvm/
H A Dmips.c1269 if (need_resched()) kvm_mips_handle_exit()
/linux-4.1.27/arch/powerpc/kernel/
H A Drtas.c498 if (ms && need_resched()) rtas_busy_delay()
/linux-4.1.27/arch/powerpc/kvm/
H A Dpowerpc.c77 if (need_resched()) { kvmppc_prepare_to_enter()
H A Dbook3s_hv.c2187 } else if (need_resched()) { kvmppc_run_vcpu()
/linux-4.1.27/fs/cachefiles/
H A Drdwr.c208 if (max < 0 || need_resched()) { cachefiles_read_copier()
/linux-4.1.27/fs/fscache/
H A Dobject.c847 if (!list_empty(&object->dependents) && need_resched()) { fscache_enqueue_dependents()
/linux-4.1.27/kernel/time/
H A Dtick-sched.c758 if (need_resched()) can_stop_idle_tick()
/linux-4.1.27/include/linux/
H A Dsched.h2874 * Idle thread specific functions to determine the need_resched
2949 static __always_inline bool need_resched(void) need_resched() function
/linux-4.1.27/net/core/
H A Dpktgen.c3307 if (need_resched()) pktgen_wait_for_skb()
3453 if (need_resched()) pktgen_thread_worker()
/linux-4.1.27/drivers/md/
H A Ddm-bufio.c194 if (unlikely(need_resched())) \
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
H A Dcl_page.c234 if (res == CLP_GANG_OKAY && need_resched()) cl_page_gang_lookup()
/linux-4.1.27/drivers/vhost/
H A Dvhost.c242 if (need_resched()) vhost_worker()
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dcnic.c4260 int need_resched = 0; cnic_delete_task() local
4283 need_resched = 1; cnic_delete_task()
4301 if (need_resched) cnic_delete_task()
H A Dtg3.c11995 if (need_resched()) { tg3_get_eeprom()
/linux-4.1.27/drivers/md/bcache/
H A Dbtree.c1577 if (need_resched()) { btree_gc_recurse()
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedi_fops.c1461 if (need_resched()) do_insnlist_ioctl()
/linux-4.1.27/drivers/s390/crypto/
H A Dap_bus.c1874 if (need_resched()) { ap_poll_thread()
/linux-4.1.27/arch/tile/kernel/
H A Dintvec_32.S863 * need_resched or sigpending) between sampling and the iret.
H A Dintvec_64.S894 * need_resched or sigpending) between sampling and the iret.
/linux-4.1.27/arch/s390/kvm/
H A Dkvm-s390.c1881 if (need_resched()) vcpu_pre_run()
/linux-4.1.27/arch/parisc/kernel/
H A Dentry.S969 * mode from an interrupt, iff need_resched is set,
/linux-4.1.27/arch/arm/kvm/
H A Dmmu.c1138 if (need_resched() || spin_needbreak(&kvm->mmu_lock)) stage2_wp_range()
/linux-4.1.27/fs/ext3/
H A Dballoc.c597 if (need_resched()) { ext3_free_blocks_sb()
/linux-4.1.27/fs/reiserfs/
H A Dreiserfs.h845 if (need_resched()) { reiserfs_cond_resched()
/linux-4.1.27/fs/ext4/
H A Dmballoc.c5123 if (need_resched()) { ext4_trim_all_free()
/linux-4.1.27/net/packet/
H A Daf_packet.c2308 if (need_wait && need_resched()) tpacket_snd()

Completed in 6340 milliseconds