Skip to contentSkip to conversation

sched/core: Consolidate switch_count assignment

PATCH New Wang Jinchao 1 participant 1 message Dec 19, 2023 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/core: Consolidate switch_count assignment

Eliminate redundancy by consolidating the switch_count assignment, removing the duplicate operation.

---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
index a708d225c28e..ecac59aa211d 100644
@@ -6646,7 +6646,6 @@ static void __sched notrace __schedule(unsigned int sched_mode)
 				delayacct_blkio_start();
 			}
 		}
-		switch_count = &prev->nvcsw;
 	}
 
 	next = pick_next_task(rq, prev, &rf);
Signature · 1 line
2.40.0