mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	sched/fair: Remove unused 'curr' argument from pick_next_entity()
The 'curr' argument of pick_next_entity() has become unused after the EEVDF changes. [ mingo: Updated the changelog. ] Signed-off-by: Yiwei Lin <s921975628@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20231020055617.42064-1-s921975628@gmail.com
This commit is contained in:
		
							parent
							
								
									fb064e5ae1
								
							
						
					
					
						commit
						4c456c9ad3
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -5256,7 +5256,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
 | 
				
			||||||
 * 4) do not run the "skip" process, if something else is available
 | 
					 * 4) do not run the "skip" process, if something else is available
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
static struct sched_entity *
 | 
					static struct sched_entity *
 | 
				
			||||||
pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr)
 | 
					pick_next_entity(struct cfs_rq *cfs_rq)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
	 * Enabling NEXT_BUDDY will affect latency but not fairness.
 | 
						 * Enabling NEXT_BUDDY will affect latency but not fairness.
 | 
				
			||||||
| 
						 | 
					@ -8160,7 +8160,7 @@ static struct task_struct *pick_task_fair(struct rq *rq)
 | 
				
			||||||
				goto again;
 | 
									goto again;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		se = pick_next_entity(cfs_rq, curr);
 | 
							se = pick_next_entity(cfs_rq);
 | 
				
			||||||
		cfs_rq = group_cfs_rq(se);
 | 
							cfs_rq = group_cfs_rq(se);
 | 
				
			||||||
	} while (cfs_rq);
 | 
						} while (cfs_rq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8223,7 +8223,7 @@ pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		se = pick_next_entity(cfs_rq, curr);
 | 
							se = pick_next_entity(cfs_rq);
 | 
				
			||||||
		cfs_rq = group_cfs_rq(se);
 | 
							cfs_rq = group_cfs_rq(se);
 | 
				
			||||||
	} while (cfs_rq);
 | 
						} while (cfs_rq);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8262,7 +8262,7 @@ pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf
 | 
				
			||||||
		put_prev_task(rq, prev);
 | 
							put_prev_task(rq, prev);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	do {
 | 
						do {
 | 
				
			||||||
		se = pick_next_entity(cfs_rq, NULL);
 | 
							se = pick_next_entity(cfs_rq);
 | 
				
			||||||
		set_next_entity(cfs_rq, se);
 | 
							set_next_entity(cfs_rq, se);
 | 
				
			||||||
		cfs_rq = group_cfs_rq(se);
 | 
							cfs_rq = group_cfs_rq(se);
 | 
				
			||||||
	} while (cfs_rq);
 | 
						} while (cfs_rq);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue