Skip to content

ARM: OMAP2+: PM: code consolidation for 3.4

Paul Walmsley linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am 20120202093600.12509.35052.stgit@dusk

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: OMAP2+: PM: share clkdms_setup() across OMAP2, 3, 4arch/arm/mach-omap2/pm.c arch/arm/mach-omap2/pm.h arch/arm/mach-omap2/pm24xx.c +2 more+14 -450 replies
2/2ARM: OMAP2+: PM: share some suspend-related functions across OMAP2, 3, 4arch/arm/mach-omap2/pm.c arch/arm/mach-omap2/pm.h arch/arm/mach-omap2/pm24xx.c +2 more+77 -1390 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] ARM: OMAP2+: PM: code consolidation for 3.4

Hi

This series consolidates some duplicated PM code across OMAP2, 3, and 4. This saves both binary kernel image size, and lines of source. These functions are just the low-hanging fruit; it looks to me like there's even more consolidation that could be done.

Suspend + UART wakeup was tested on OMAP44xx BeagleBoard. On the OMAP35xx Beagleboard here, v3.3-rc2 doesn't seem to wake up from suspend correctly with or without these patches, so I've only boot-tested them on that platform.

- Paul

---

pm_cleanup_b_3.4
text data bss dec hex filename
6596402 680284 5593820 12870506 c4636a vmlinux.orig
6596230 680292 5593756 12870278 c46286 vmlinux.patched

Paul Walmsley (2):
ARM: OMAP2+: PM: share clkdms_setup() across OMAP2, 3, 4
ARM: OMAP2+: PM: share some suspend-related functions across OMAP2, 3, 4

 arch/arm/mach-omap2/pm.c     |   74 ++++++++++++++++++++++++++++++++++++++++++
 arch/arm/mach-omap2/pm.h     |    2 +
 arch/arm/mach-omap2/pm24xx.c |   69 +++------------------------------------
 arch/arm/mach-omap2/pm34xx.c |   73 ++++-------------------------------------
 arch/arm/mach-omap2/pm44xx.c |   57 ++------------------------------
 5 files changed, 91 insertions(+), 184 deletions(-)