Skip to content

Commit a49b4f4

Browse files
Valentin SchneiderIngo Molnar
authored andcommitted
sched/core: Fix preempt_schedule() interrupt return comment
preempt_schedule_irq() is the one that should be called on return from interrupt, clean up the comment to avoid any ambiguity. Signed-off-by: Valentin Schneider <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 763a9ec commit a49b4f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

kernel/sched/core.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,9 +4218,8 @@ static void __sched notrace preempt_schedule_common(void)
42184218

42194219
#ifdef CONFIG_PREEMPTION
42204220
/*
4221-
* this is the entry point to schedule() from in-kernel preemption
4222-
* off of preempt_enable. Kernel preemptions off return from interrupt
4223-
* occur there and call schedule directly.
4221+
* This is the entry point to schedule() from in-kernel preemption
4222+
* off of preempt_enable.
42244223
*/
42254224
asmlinkage __visible void __sched notrace preempt_schedule(void)
42264225
{
@@ -4291,7 +4290,7 @@ EXPORT_SYMBOL_GPL(preempt_schedule_notrace);
42914290
#endif /* CONFIG_PREEMPTION */
42924291

42934292
/*
4294-
* this is the entry point to schedule() from kernel preemption
4293+
* This is the entry point to schedule() from kernel preemption
42954294
* off of irq context.
42964295
* Note, that this is called and return with irqs disabled. This will
42974296
* protect us against recursive calling from irq.

0 commit comments

Comments
 (0)