Skip to content

pseries/cpuidle: pseries cpuidle backend driver clean-ups.

Deepthi Dharwar linux-pm linuxppc-dev lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6pseries/cpuidle: Remove redundant call to ppc64_runlatch_off() in cpu idle routinesarch/powerpc/platforms/pseries/processor_idle.c+0 -30 replies
2/6pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.arch/powerpc/include/asm/processor.h arch/powerpc/platforms/pseries/Kconfig arch/powerpc/platforms/pseries/Makefile +5 more+382 -3720 replies
3/6pseries/cpuidle: Use cpuidle_register() for initialisation.drivers/cpuidle/cpuidle-pseries.c+11 -670 replies
4/6pseries/cpuidle: Make cpuidle-pseries backend driver a non-module.drivers/cpuidle/cpuidle-pseries.c+1 -140 replies
5/6pseries/cpuidle: Remove MAX_IDLE_STATE macro.drivers/cpuidle/cpuidle-pseries.c+10 -180 replies
6/6pseries/cpuidle: smt-snooze-delay cleanup.arch/powerpc/include/asm/processor.h arch/powerpc/kernel/sysfs.c drivers/cpuidle/cpuidle-pseries.c+0 -260 replies

Reviews trailers per patch

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

PatchSrivatsa S. Bhat
1/6R-b
2/6
3/6
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH v1 0/6] pseries/cpuidle: pseries cpuidle backend driver clean-ups.

The following patch series includes a bunch of clean-ups for the pseries cpuidle backend driver. This includes,
moving the driver from arch/powerpc/platforms/pseries to driver/cpuidle, refactoring of the code, making it a non-module, removing smt-snooze-delay update and dead code around it.

After a number of attempts to consolidate the backend cpuidle driver for pSeries and powernv platforms, it seems best to have separate idle drivers for both the platforms as any kind of code duplication seizes to exist beyond snooze loop and a hot plug notifier. Also going further, with addition of device tree parsing to setup idle states and related changes just for powernv platform, it is best to keep these drivers separate without adding complexity and thus improving readabilty for both the platform drivers.

The clean-up undertaken here was posted earlier as part of generic powerpc cpuidle driver clean-up.

V1 -> http://lkml.org/lkml/2013/7/23/143
V2 -> https://lkml.org/lkml/2013/7/30/872
V3 -> http://comments.gmane.org/gmane.linux.ports.ppc.embedded/63093
V4 -> https://lkml.org/lkml/2013/8/22/25
V5 -> http://lkml.org/lkml/2013/8/22/184
V6 -> https://lkml.org/lkml/2013/8/27/432
V7 -> https://lkml.org/lkml/2013/10/29/216
V8 -> https://lkml.org/lkml/2013/11/11/29

Deepthi Dharwar (5):
pseries/cpuidle: Move processor_idle.c to drivers/cpuidle. pseries/cpuidle: Use cpuidle_register() for initialisation. pseries/cpuidle: Make cpuidle-pseries backend driver a non-module. pseries/cpuidle: Remove MAX_IDLE_STATE macro. pseries/cpuidle: smt-snooze-delay cleanup.

Preeti U Murthy (1):
pseries/cpuidle: Remove redundant call to ppc64_runlatch_off() in cpu idle routines

 arch/powerpc/include/asm/processor.h            |    7 
 arch/powerpc/kernel/sysfs.c                     |    2 
 arch/powerpc/platforms/pseries/Kconfig          |    9 -
 arch/powerpc/platforms/pseries/Makefile         |    1 
 arch/powerpc/platforms/pseries/processor_idle.c |  364 -----------------------
 drivers/cpuidle/Kconfig                         |    5 
 drivers/cpuidle/Kconfig.powerpc                 |   11 +
 drivers/cpuidle/Makefile                        |    4 
 drivers/cpuidle/cpuidle-pseries.c               |  267 +++++++++++++++++
 9 files changed, 287 insertions(+), 383 deletions(-)
 delete mode 100644 arch/powerpc/platforms/pseries/processor_idle.c
 create mode 100644 drivers/cpuidle/Kconfig.powerpc
 create mode 100644 drivers/cpuidle/cpuidle-pseries.c

-- Deepthi