mirror of https://github.com/torvalds/linux.git
sched: Fixup whitespace damage
With whitespace checks enabled in the editor this makes eyes bleed. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://patch.msgid.link/20251119172549.258651925@linutronix.de
This commit is contained in:
parent
be4463fa2c
commit
925b7847bb
|
|
@ -5278,15 +5278,15 @@ context_switch(struct rq *rq, struct task_struct *prev,
|
|||
* kernel -> user switch + mmdrop_lazy_tlb() active
|
||||
* user -> user switch
|
||||
*/
|
||||
if (!next->mm) { // to kernel
|
||||
if (!next->mm) { // to kernel
|
||||
enter_lazy_tlb(prev->active_mm, next);
|
||||
|
||||
next->active_mm = prev->active_mm;
|
||||
if (prev->mm) // from user
|
||||
if (prev->mm) // from user
|
||||
mmgrab_lazy_tlb(prev->active_mm);
|
||||
else
|
||||
prev->active_mm = NULL;
|
||||
} else { // to user
|
||||
} else { // to user
|
||||
membarrier_switch_mm(rq, prev->active_mm, next->mm);
|
||||
/*
|
||||
* sys_membarrier() requires an smp_mb() between setting
|
||||
|
|
@ -5299,7 +5299,7 @@ context_switch(struct rq *rq, struct task_struct *prev,
|
|||
switch_mm_irqs_off(prev->active_mm, next->mm, next);
|
||||
lru_gen_use_mm(next->mm);
|
||||
|
||||
if (!prev->mm) { // from kernel
|
||||
if (!prev->mm) { // from kernel
|
||||
/* will mmdrop_lazy_tlb() in finish_task_switch(). */
|
||||
rq->prev_mm = prev->active_mm;
|
||||
prev->active_mm = NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue