Skip to content

RFC cpuidle/sched: move main idle function in the idle.c

Daniel Lezcano linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 48 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cpuidle: split cpuidle_idle_call main function into functionsdrivers/cpuidle/cpuidle.c include/linux/cpuidle.h+83 -294 replies
2/3cpuidle: move the cpuidle_idle_call function to idle.cdrivers/cpuidle/cpuidle.c include/linux/cpuidle.h kernel/sched/idle.c+44 -391 reply
3/3idle: store the idle state index in the struct rqkernel/sched/idle.c kernel/sched/sched.h+12 -043 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchNicolas Pitre
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/3] cpuidle/sched: move main idle function in the idle.c

This patchset relies on the "setting the table for integration of cpuidle with the scheduler" from Nicolas Pitre where the idle.c file has been moved into the sched directory.

It encapsulate the cpuidle main code into three exported functions which are used by the cpuidle_idle_call function. This one is then moved into the idle.c file.

The third patch shows an example on how integrating cpuidle information in the scheduler is easier.

Daniel Lezcano (3):
cpuidle: split cpuidle_idle_call main function into functions
cpuidle: move the cpuidle_idle_call function to idle.c
idle: store the idle state index in the struct rq

 drivers/cpuidle/cpuidle.c |   80 +++++++++++++++++++++++++--------------------
 include/linux/cpuidle.h   |    9 +++--
 kernel/sched/idle.c       |   53 ++++++++++++++++++++++++++++++
 kernel/sched/sched.h      |    3 ++
 4 files changed, 108 insertions(+), 37 deletions(-)
Signature · 1 line
1.7.9.5