mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
sched/rt: Document scheduler related skip-resched-check sites
Create a distinction between scheduler related preempt_enable_no_resched() calls and the nearly one hundred other places in the kernel that do not want to reschedule, for one reason or another. This distinction matters for -rt, where the scheduler and the non-scheduler preempt models (and checks) are different. For upstream it's purely documentational. Signed-off-by: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
bd2f55361f
commit
ba74c1448f
5 changed files with 11 additions and 8 deletions
|
|
@ -353,7 +353,7 @@ void irq_exit(void)
|
|||
tick_nohz_irq_exit();
|
||||
#endif
|
||||
rcu_irq_exit();
|
||||
preempt_enable_no_resched();
|
||||
sched_preempt_enable_no_resched();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -759,7 +759,7 @@ static int run_ksoftirqd(void * __bind_cpu)
|
|||
if (local_softirq_pending())
|
||||
__do_softirq();
|
||||
local_irq_enable();
|
||||
preempt_enable_no_resched();
|
||||
sched_preempt_enable_no_resched();
|
||||
cond_resched();
|
||||
preempt_disable();
|
||||
rcu_note_context_switch((long)__bind_cpu);
|
||||
|
|
|
|||
Loading…
Reference in a new issue