linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2][v3] sched: Clean up newidle_balance() and pick_next_task()
@ 2020-04-21 10:48 Chen Yu
  2020-04-21 10:50 ` [PATCH 1/2][v3] sched: Make newidle_balance() static again Chen Yu
  2020-04-21 10:50 ` [PATCH 2/2][v3] sched: Extract the task putting code from pick_next_task() Chen Yu
  0 siblings, 2 replies; 7+ messages in thread
From: Chen Yu @ 2020-04-21 10:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Zijlstra, Vincent Guittot, Steven Rostedt,
	Valentin Schneider, Ingo Molnar, Juri Lelli, Dietmar Eggemann,
	Mel Gorman, Ben Segall, Chen Yu

As Peter suggested, here are two minor code clean up in the scheduler:
1. turn newidle_balance() into a static function.
2. code extraction in pick_next_task() for future re-use.

Chen Yu (2):
  sched: Make newidle_balance() static again
  sched: Extract the task putting code from pick_next_task()

 kernel/sched/core.c  | 39 +++++++++++++++++++++++----------------
 kernel/sched/fair.c  |  6 ++++--
 kernel/sched/sched.h |  4 ----
 3 files changed, 27 insertions(+), 22 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-01 18:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 10:48 [PATCH 0/2][v3] sched: Clean up newidle_balance() and pick_next_task() Chen Yu
2020-04-21 10:50 ` [PATCH 1/2][v3] sched: Make newidle_balance() static again Chen Yu
2020-05-01 18:22   ` [tip: sched/core] " tip-bot2 for Chen Yu
2020-04-21 10:50 ` [PATCH 2/2][v3] sched: Extract the task putting code from pick_next_task() Chen Yu
2020-04-21 14:50   ` Steven Rostedt
2020-04-21 14:53   ` Vincent Guittot
2020-05-01 18:22   ` [tip: sched/core] " tip-bot2 for Chen Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).