Skip to content

RFC ARM: at91: cpuidle: move driver to drivers/cpuidle

Daniel Lezcano linux-arm-kernel linux-pm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: at91: cpuidle: encapsulate the standby codearch/arm/mach-at91/cpuidle.c arch/arm/mach-at91/pm.c+11 -162 replies
1/2ARM: at91: cpuidle: encapsulate the standby code+0 -00 replies
2/2ARM: at91: cpuidle: move the driver to drivers/cpuidle directoryarch/arm/mach-at91/Makefile arch/arm/mach-at91/cpuidle.c drivers/cpuidle/Makefile +1 more+58 -562 replies
2/2ARM: at91: cpuidle: move the driver to drivers/cpuidle directory+0 -00 replies
2/2ARM: at91: cpuidle: move the driver to drivers/cpuidle directory+0 -01 reply
2/2ARM: at91: cpuidle: move the driver to drivers/cpuidle directory+0 -00 replies
2/2ARM: at91: cpuidle: move the driver to drivers/cpuidle directory+0 -00 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchJean-Christophe PLAGNIOL-VILLARD
1/2A-b
1/2A-b
2/2
2/2
2/2
2/2
2/2

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/2] ARM: at91: cpuidle: move driver to drivers/cpuidle

The number of cpuidle drivers is increasing more and more. Today we have in total 24 drivers. A lot of the code is duplicated, at least for the initialization. A work of consolidation has been done during this year:
* a lot of code cleanup in all the drivers
* time keeping is now part of the framework
* timer broadcast is now part of the framework
* a WFI state function for ARM is defined and used in the drivers
* an init function has been proposed to factor out the initialization across the drivers (patchset pending)

What has been observed is a lot of code duplicationis, modification made in the framework takes awhile before reaching the driver which uses an old API, duplicate routine and bugs, etc ...

It appears the drivers are belonging to different trees, the cpuidle framework is under linux-pm, the drivers are per SoC tree. The communication is made difficult because of the different mailing lists where the cpuidle are submitted.

After this work, it is time to prevent all these problems to occur again.

I propose to move the cpuidle drivers to the drivers/cpuidle directory, hence having one single submission path for cpuidle in order to have the cpuidle framework and the different drivers synced.

This series move the AT91 cpuidle driver under drivers/cpuidle. That does not change the rule to have the patches acked-by the author of the driver.

Note the calxeda and kirkwood drivers are now in drivers/cpuidle.

Daniel Lezcano (2):
ARM: at91: cpuidle: encapsulate the standby code
ARM: at91: cpuidle: move the driver to drivers/cpuidle directory

 arch/arm/mach-at91/Makefile  |    1 -
 arch/arm/mach-at91/cpuidle.c |   66 ------------------------------------------
 arch/arm/mach-at91/pm.c      |    8 ++++-
 drivers/cpuidle/Makefile     |    1 +
 drivers/cpuidle/at91.c       |   55 +++++++++++++++++++++++++++++++++++
 5 files changed, 63 insertions(+), 68 deletions(-)
 delete mode 100644 arch/arm/mach-at91/cpuidle.c
 create mode 100644 drivers/cpuidle/at91.c
Signature · 1 line
1.7.9.5