Skip to content

sched: move content out of core files for load calculations

Paul Gortmaker lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v1 RFC2 patches 15 repliesSuperseded

Changes in v2 from the cover letter

1) rebase from tip's sched/core (v3.9-rc1-38-gb329fd5) to today's

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched: fork load calculation code from sched/core --> sched/prockernel/sched/Makefile kernel/sched/core.c kernel/sched/proc.c +1 more+587 -5700 replies
2/2sched: move update_load_[add/sub/set] from sched.h to fair.ckernel/sched/fair.c kernel/sched/sched.h+18 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] sched: move content out of core files for load calculations

Recent activity has had a focus on moving functionally related blocks of stuff out of sched/core.c into stand-alone files. The code relating to load calculations has grown significantly enough recently to warrant placing it in a separate file.

Here we do that, and in doing so, we shed ~20k of code from sched/core.c (~10%).

A couple small static functions in the core sched.h header were also localized to their singular user in sched/fair.c at the same time, with the goal to also reduce the amount of "broadcast" content in that sched.h file.

Paul.
---

v2 changes:

1) rebase from tip's sched/core (v3.9-rc1-38-gb329fd5) to today's

     tip master (v3.9-rc6-2031-g27f8b76).

2) rename file from load_avg.c to proc.c

---

The following changes since commit 27f8b769cba5a97ffcbaae92fd4c0ed84f00e214:

manual merge of tools/kvm (2013-04-19 13:05:17 +0200)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux.git for-ingo

for you to fetch changes up to dac25445169ff97142ae4f7174e3d94ce7036ad3:

sched: move update_load_[add/sub/set] from sched.h to fair.c (2013-04-19 14:38:11 -0400)

----------------------------------------------------------------
Paul Gortmaker (2):
sched: fork load calculation code from sched/core --> sched/proc
sched: move update_load_[add/sub/set] from sched.h to fair.c

 kernel/sched/Makefile |   2 +-
 kernel/sched/core.c   | 569 -------------------------------------------------
 kernel/sched/fair.c   |  18 ++
 kernel/sched/proc.c   | 578 ++++++++++++++++++++++++++++++++++++++++++++++++++
 kernel/sched/sched.h  |  26 +--
 5 files changed, 605 insertions(+), 588 deletions(-)
 create mode 100644 kernel/sched/proc.c