Home
last modified time | relevance | path

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

123456789

/kernel/linux/linux-5.10/arch/arm64/include/asm/
H 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()
63 /* Update only the count field, leaving need_resched unchanged */ in __preempt_count_dec_and_test()
69 * preempt_count in case the need_resched flag was cleared by an in __preempt_count_dec_and_test()
H A Dthread_info.h36 u32 need_resched; member
40 u32 need_resched;
/kernel/linux/linux-6.6/arch/arm64/include/asm/
H A Dpreempt.h32 current_thread_info()->preempt.need_resched = 0; in set_preempt_need_resched()
37 current_thread_info()->preempt.need_resched = 1; in clear_preempt_need_resched()
42 return !current_thread_info()->preempt.need_resched; in test_preempt_need_resched()
64 /* Update only the count field, leaving need_resched unchanged */ in __preempt_count_dec_and_test()
70 * preempt_count in case the need_resched flag was cleared by an in __preempt_count_dec_and_test()
H A Dthread_info.h33 u32 need_resched; member
37 u32 need_resched;
/kernel/linux/linux-5.10/arch/mips/kernel/
H 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
H A Didle.c41 if (!need_resched()) in r39xx_wait()
53 * This variant is preferable as it allows testing need_resched and going to
61 if (!need_resched()) in r4k_wait_irqoff()
76 if (!need_resched()) in rm7k_wait_irqoff()
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dentry.S48 # interrupt setting need_resched
84 local_irq_disable # make sure need_resched and
128 local_irq_disable # make sure need_resched and
150 local_irq_disable # make sure need_resched doesn't
H A Didle.c46 * This variant is preferable as it allows testing need_resched and going to
54 if (!need_resched()) in r4k_wait_irqoff()
68 if (!need_resched()) in rm7k_wait_irqoff()
/kernel/linux/linux-5.10/fs/jbd2/
H 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()
/kernel/linux/linux-6.6/arch/powerpc/lib/
H A Dvmx-helper.c44 * kernels need to be preempted as soon as possible if need_resched is in exit_vmx_usercopy()
48 if (IS_ENABLED(CONFIG_PREEMPT) && need_resched()) in exit_vmx_usercopy()
/kernel/linux/linux-5.10/drivers/cpuidle/
H A Dcoupled.c422 * need_resched() must be tested after this function returns to make sure
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()
H A Dpoll_state.c27 while (!need_resched()) { in poll_idle()
/kernel/linux/linux-6.6/drivers/cpuidle/
H A Dcoupled.c422 * need_resched() must be tested after this function returns to make sure
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()
H A Dpoll_state.c29 while (!need_resched()) { in poll_idle()
/kernel/linux/linux-6.6/fs/jbd2/
H A Dcheckpoint.c271 need_resched() || spin_needbreak(&journal->j_list_lock) || in jbd2_log_do_checkpoint()
387 if (need_resched()) in journal_shrink_one_cp_list()
447 if (need_resched() || spin_needbreak(&journal->j_list_lock)) in jbd2_journal_shrink_checkpoint_list()
502 if (need_resched()) in __jbd2_journal_clean_checkpoint_list()
/kernel/linux/linux-5.10/kernel/entry/
H A Dkvm.c29 } while (ti_work & XFER_TO_GUEST_MODE_WORK || need_resched()); in xfer_to_guest_mode_work()
/kernel/linux/linux-6.6/kernel/entry/
H A Dkvm.c27 } while (ti_work & XFER_TO_GUEST_MODE_WORK || need_resched()); in xfer_to_guest_mode_work()
/kernel/linux/linux-5.10/kernel/sched/
H A Didle.c180 if (need_resched()) { in cpuidle_idle_call()
269 * then setting need_resched is guaranteed to cause the CPU to in do_idle()
276 while (!need_resched()) { in do_idle()
318 * need_resched() is set while polling is set. That means that clearing in do_idle()
/kernel/linux/linux-6.6/kernel/sched/
H A Didle.c156 if (need_resched()) { in cpuidle_idle_call()
251 * then setting need_resched is guaranteed to cause the CPU to in do_idle()
258 while (!need_resched()) { in do_idle()
300 * need_resched() is set while polling is set. That means that clearing in do_idle()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dmwait.h99 * which can obviate IPI to trigger checking of need_resched.
100 * We execute MONITOR against need_resched and enter optimized wait state
101 * through MWAIT. Whenever someone changes need_resched, we would be woken
117 if (!need_resched()) in mwait_idle_with_hints()
/kernel/linux/linux-5.10/arch/mips/vr41xx/common/
H A Dpmu.c40 if (!need_resched()) in vr41xx_cpu_wait()
/kernel/linux/linux-5.10/fs/
H A Ddrop_caches.c30 (inode->i_mapping->nrpages == 0 && !need_resched())) { in drop_pagecache_sb()
/kernel/linux/linux-6.6/fs/
H A Ddrop_caches.c32 (mapping_empty(inode->i_mapping) && !need_resched())) { in drop_pagecache_sb()
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dmwait.h100 * which can obviate IPI to trigger checking of need_resched.
101 * We execute MONITOR against need_resched and enter optimized wait state
102 * through MWAIT. Whenever someone changes need_resched, we would be woken
119 if (!need_resched()) { in mwait_idle_with_hints()
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Def100_rep.c399 bool need_resched; in efx_ef100_rep_poll() local
424 need_resched = efv->write_index != read_index; in efx_ef100_rep_poll()
426 if (need_resched) in efx_ef100_rep_poll()

Completed in 11 milliseconds

123456789