ARM: move cpuidle drivers to drivers/cpuidle/
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 8 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 8 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] ARM: move cpuidle drivers to drivers/cpuidle/
Quoted 11 lines · Bartlomiej Zolnierkiewicz
Hi,
Quoted 7 lines · Daniel Lezcano
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Hi,
This patchset moves ARM cpuidle drivers to
drivers/cpuidle/to make code match new driver placement rules (per commit a8e39c3 "cpuidle: add maintainer entry").
Quoted 8 lines
Quoted 5 lines
I second this initiative but as stated in a previous email, a bit of code cleanup, consolidation and encapsulation should be done before.
Again, from my POV, it is worth to do that but we have to split the pm code from the driver.
OK, I'll look into separating the pm code from the drivers. However it seems that patch #2 (for davinci) can be applied as it is.
No it can't. It still has #include <mach/...>
Please have a look at the thread:
http://comments.gmane.org/gmane.linux.ports.arm.kernel/146651
Quoted 7 lines
Quoted 6 lines
Please review some patches I sent recently to split this code and comment them. Otherwise, we will collide on this work.
All the patches sent [1] was to unify the code to make the drivers as unified as possible to converge to the same code pattern and to facilitate the factoring out.
Quoted 7 lines
I've looked at the patches ([1] and at91 ones) and they look fine to me. I don't think that there is currently a risk of colliding on this work (except at91 case) as your patches (except at91 ones) are already merged in upstream or linux-next branch of linux-pm tree (which is included in linux-next tree which I based my patches on). I'm subscribed to linux-pm mailing list now but please cc: me on your future ARM cpuidle changes (thanks!).
We are working on cleaning up the different drivers to have a *common code pattern* in order to factor it out, split the code into pm code and driver code, move the drivers to the drivers/cpuidle directory and finally create a single arm driver [1][2][3].
You are sending patches to move the drivers directly to the drivers/cpuidle directory. I did that 1,5 years ago and I was told it is not the way to go [4].
As you can see this is a WIP.
So I am insisting: that would be better if you sync up with us and check what is the WIP and, if you are willing to, give us a hand instead of doing your way.
May I suggest you fix up the exynos cpuidle driver first ? :)
Thanks
-- Daniel
[1]
https://blueprints.launchpad.net/linaro-power-kernel/+spec/cpuidle-consolidate-arm-drivers
[2]
http://summit.linuxplumbersconf.org/lpc-2012/meeting/31/lpc2012-ref-cpu-idle-cluster-management/
[3] https://e.lca-13.zerista.com/event/member/72362
[4] http://comments.gmane.org/gmane.linux.ports.arm.kernel/146651
Quoted 100 lines
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung ElectronicsQuoted 93 lines
Thanks
-- DanielQuoted 87 lines
[ Please note that movement of Samsung EXYNOS cpuidle driver is handled
in separate patchset since it needs some other changes applied first. ]Patches are based on linux-next (next-20130624) and are compile tested only. If agreed they all should probably go together through one tree (linux-pm or arm-soc) since they all modify
drivers/cpuidle/Makefile.PS It seems that majority of cpuidle drivers is not used by default (
CONFIG_CPU_IDLEis not turned on in corresponding defconfigs). The only exceptions are shmobile (kota2_defconfig) and tegra (tegra_defconfig). This is probably also something that needs updating.Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung ElectronicsBartlomiej Zolnierkiewicz (8):
ARM: at91: move cpuidle driver todrivers/cpuidle/
ARM: davinci: move cpuidle driver todrivers/cpuidle/
ARM: imx: move cpuidle drivers todrivers/cpuidle/
ARM: OMAP: move cpuidle drivers todrivers/cpuidle/
ARM: S3C64XX: move cpuidle driver todrivers/cpuidle/
ARM: shmobile: move cpuidle driver todrivers/cpuidle/
ARM: tegra: move cpuidle drivers todrivers/cpuidle/
ARM: ux500: move cpuidle drivers todrivers/cpuidle/arch/arm/mach-at91/Makefile | 1 - arch/arm/mach-at91/cpuidle.c | 68 ------- arch/arm/mach-davinci/Makefile | 1 - arch/arm/mach-davinci/cpuidle.c | 105 ---------- arch/arm/mach-imx/Makefile | 5 - arch/arm/mach-imx/cpuidle-imx5.c | 37 ---- arch/arm/mach-imx/cpuidle-imx6q.c | 75 ------- arch/arm/mach-omap2/Makefile | 5 - arch/arm/mach-omap2/cpuidle34xx.c | 344 --------------------------------- arch/arm/mach-omap2/cpuidle44xx.c | 217 --------------------- arch/arm/mach-s3c64xx/Makefile | 1 - arch/arm/mach-s3c64xx/cpuidle.c | 63 ------ arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/cpuidle.c | 37 ---- arch/arm/mach-tegra/Makefile | 9 - arch/arm/mach-tegra/cpuidle-tegra114.c | 35 ---- arch/arm/mach-tegra/cpuidle-tegra20.c | 217 --------------------- arch/arm/mach-tegra/cpuidle-tegra30.c | 149 -------------- arch/arm/mach-ux500/Makefile | 1 - arch/arm/mach-ux500/cpuidle.c | 128 ------------ drivers/cpuidle/Makefile | 42 ++++ drivers/cpuidle/cpuidle-at91.c | 68 +++++++ drivers/cpuidle/cpuidle-davinci.c | 104 ++++++++++ drivers/cpuidle/cpuidle-imx5.c | 37 ++++ drivers/cpuidle/cpuidle-imx6q.c | 74 +++++++ drivers/cpuidle/cpuidle-omap34xx.c | 342 ++++++++++++++++++++++++++++++++ drivers/cpuidle/cpuidle-omap44xx.c | 216 +++++++++++++++++++++ drivers/cpuidle/cpuidle-s3c64xx.c | 62 ++++++ drivers/cpuidle/cpuidle-shmobile.c | 37 ++++ drivers/cpuidle/cpuidle-tegra114.c | 35 ++++ drivers/cpuidle/cpuidle-tegra20.c | 217 +++++++++++++++++++++ drivers/cpuidle/cpuidle-tegra30.c | 149 ++++++++++++++ drivers/cpuidle/cpuidle-ux500.c | 128 ++++++++++++ 33 files changed, 1511 insertions(+), 1499 deletions(-) delete mode 100644 arch/arm/mach-at91/cpuidle.c delete mode 100644 arch/arm/mach-davinci/cpuidle.c delete mode 100644 arch/arm/mach-imx/cpuidle-imx5.c delete mode 100644 arch/arm/mach-imx/cpuidle-imx6q.c delete mode 100644 arch/arm/mach-omap2/cpuidle34xx.c delete mode 100644 arch/arm/mach-omap2/cpuidle44xx.c delete mode 100644 arch/arm/mach-s3c64xx/cpuidle.c delete mode 100644 arch/arm/mach-shmobile/cpuidle.c delete mode 100644 arch/arm/mach-tegra/cpuidle-tegra114.c delete mode 100644 arch/arm/mach-tegra/cpuidle-tegra20.c delete mode 100644 arch/arm/mach-tegra/cpuidle-tegra30.c delete mode 100644 arch/arm/mach-ux500/cpuidle.c create mode 100644 drivers/cpuidle/cpuidle-at91.c create mode 100644 drivers/cpuidle/cpuidle-davinci.c create mode 100644 drivers/cpuidle/cpuidle-imx5.c create mode 100644 drivers/cpuidle/cpuidle-imx6q.c create mode 100644 drivers/cpuidle/cpuidle-omap34xx.c create mode 100644 drivers/cpuidle/cpuidle-omap44xx.c create mode 100644 drivers/cpuidle/cpuidle-s3c64xx.c create mode 100644 drivers/cpuidle/cpuidle-shmobile.c create mode 100644 drivers/cpuidle/cpuidle-tegra114.c create mode 100644 drivers/cpuidle/cpuidle-tegra20.c create mode 100644 drivers/cpuidle/cpuidle-tegra30.c create mode 100644 drivers/cpuidle/cpuidle-ux500.c
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog