linux-hardened/arch/arm/mach-shmobile
Rafael J. Wysocki 5b41147cea ARM: shmobile: Make sh7372 cpuidle handling more straightforward
The sh7372 cpuidle code uses the same artificially designed routine
shmobile_cpuidle_enter() as the .enter() callback for all of its
cpuidle states.  However, shmobile_cpuidle_enter() calls a different
"enter" function for each state using an array of function pointers
populated by the sh7372 PM initialization code.  Moreover, the
states[] array of the shmobile cpuidle driver is populated by that
code as well, although in principle it just might have been filled
with static data.

All of that complexity goes away if the sh7372 cpuidle code is
allowed to define its own cpuidle driver structure that can be passed
for registration to the common shmobile cpuidle initialization
routine, so modify the code accordingly.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
2012-09-04 01:45:01 +02:00
..
include/mach ARM: shmobile: Make sh7372 cpuidle handling more straightforward 2012-09-04 01:45:01 +02:00
board-ag5evm.c ARM: mach-shmobile: add fixed voltage regulators to ag5evm 2012-06-30 22:39:00 +02:00
board-ap4evb.c ARM: shmobile: Rework adding devices to PM domains on AP4EVB 2012-09-04 01:45:00 +02:00
board-armadillo800eva.c ARM: shmobile: Use names of power domains for adding devices to them 2012-09-04 01:44:55 +02:00
board-bonito.c ARM: mach-shmobile: add fixed voltage regulators to bonito 2012-06-30 22:46:52 +02:00
board-g3evm.c ARM: shmobile: use machine specific hook for late init 2012-05-08 20:36:35 +08:00
board-g4evm.c ARM: mach-shmobile: add fixed voltage regulators to g4evm 2012-06-30 22:48:46 +02:00
board-kota2.c ARM: mach-shmobile: add fixed voltage regulators to kota2 2012-06-30 22:50:14 +02:00
board-kzm9d.c Merge branch 'renesas-kzm9d' into renesas-board 2012-07-11 23:07:37 +02:00
board-kzm9g.c Merge branch 'renesas-kzm9g' into renesas-board 2012-07-11 23:07:44 +02:00
board-mackerel.c ARM: shmobile: Rework adding devices to PM domains on Mackerel 2012-09-04 01:45:00 +02:00
board-marzen.c ARM: mach-shmobile: add fixed voltage regulators to marzen 2012-06-30 22:58:18 +02:00
clock-emev2.c mach-shmobile: Emma Mobile EV2 DT support V3 2012-05-18 00:14:03 +02:00
clock-r8a7740.c Merge branch 'renesas-soc-core' into renesas-soc 2012-07-11 23:01:33 +02:00
clock-r8a7779.c ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-07-02 23:41:34 +02:00
clock-sh73a0.c Merge branch 'renesas-sh73a0' into renesas-soc 2012-07-11 23:02:18 +02:00
clock-sh7367.c ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-07-02 23:41:34 +02:00
clock-sh7372.c ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-07-02 23:41:34 +02:00
clock-sh7377.c ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-07-02 23:41:34 +02:00
clock.c ARM: mach-shmobile: rename clk_init() to shmobile_clk_init() 2012-03-12 22:19:43 +01:00
console.c
cpuidle.c ARM: shmobile: Make sh7372 cpuidle handling more straightforward 2012-09-04 01:45:01 +02:00
entry-intc.S ARM: gic: consolidate PPI handling 2011-10-23 13:32:29 +01:00
headsmp.S ARM / mach-shmobile: Invalidate caches when booting secondary cores 2012-05-12 22:13:52 +02:00
hotplug.c ARM: mach-shmobile: Flush caches in platform_cpu_die() 2012-01-09 10:37:29 +09:00
intc-r8a7740.c ARM: shmobile: r8a7740: add HDMI interrupt support 2012-06-20 12:27:47 +02:00
intc-r8a7779.c ARM: shmobile: r8a7779: Route all interrupts to ARM 2012-06-23 01:12:09 +02:00
intc-sh73a0.c ARM: cleanups of io includes 2012-03-29 18:02:10 -07:00
intc-sh7367.c ARM: shmobile: remove NR_IRQS 2012-01-25 20:37:51 -06:00
intc-sh7372.c ARM: mach-shmobile: Rework sh7372 INTCS demuxer V2 2012-04-11 12:11:50 +02:00
intc-sh7377.c ARM: shmobile: remove NR_IRQS 2012-01-25 20:37:51 -06:00
Kconfig Merge branch 'renesas-armadillo' into renesas-board 2012-07-11 23:06:35 +02:00
Makefile ARM: shmobile: Move definition of shmobile_init_late() to header 2012-09-04 01:45:01 +02:00
Makefile.boot ARM: 7022/1: allow to detect conflicting zreladdrs 2011-10-17 09:12:40 +01:00
pfc-r8a7740.c ARM: shmobile: r8a7740: fixup: MSEL1CR 7bit control 2012-07-06 20:40:16 +02:00
pfc-r8a7779.c ARM: mach-shmobile: r8a7779 PFC IPSR4 fix 2012-02-24 13:24:59 +09:00
pfc-sh73a0.c ARM: mach-shmobile: pfc-sh73a0: fixup MSEL2CR MSEL18 for I2C-3 2012-05-12 22:34:16 +02:00
pfc-sh7367.c ARM: mach-shmobile: move helper macro PORTCR to sh_pfc.h 2011-11-11 16:45:35 +09:00
pfc-sh7372.c ARM: mach-shmobile: add GPIO-to-IRQ translation to sh7372 2012-01-24 10:40:25 +09:00
pfc-sh7377.c ARM: mach-shmobile: move helper macro PORTCR to sh_pfc.h 2011-11-11 16:45:35 +09:00
platsmp.c ARM: shmobile: fix platsmp.c build when ARCH_SH73A0=n 2012-07-06 22:00:20 +02:00
pm-r8a7740.c ARM: shmobile: Move r8a7740's PM domain objects to a table 2012-09-04 01:44:57 +02:00
pm-r8a7779.c ARM: shmobile: Move r8a7779's PM domain objects to a table 2012-09-04 01:44:58 +02:00
pm-rmobile.c ARM: shmobile: Rework adding devices to PM domains on Mackerel 2012-09-04 01:45:00 +02:00
pm-sh7372.c ARM: shmobile: Make sh7372 cpuidle handling more straightforward 2012-09-04 01:45:01 +02:00
setup-emev2.c mach-shmobile: Emma Mobile EV2 DT support V3 2012-05-18 00:14:03 +02:00
setup-r8a7740.c ARM: shmobile: Move r8a7740's PM domain objects to a table 2012-09-04 01:44:57 +02:00
setup-r8a7779.c ARM: shmobile: Move r8a7779's PM domain objects to a table 2012-09-04 01:44:58 +02:00
setup-sh73a0.c ARM: shmobile: use common DMAEngine definitions on sh73a0 2012-06-30 15:13:49 +02:00
setup-sh7367.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2012-03-29 16:53:48 -07:00
setup-sh7372.c ARM: shmobile: Rework adding devices to PM domains on Mackerel 2012-09-04 01:45:00 +02:00
setup-sh7377.c ARM: mach-shmobile: sh7377 generic board support via DT 2012-07-06 21:05:20 +02:00
sleep-sh7372.S PM / shmobile: Add support for the sh7372 A4S power domain / sleep mode 2011-12-25 23:39:03 +01:00
smp-emev2.c mach-shmobile: Emma Mobile EV2 SMP support V3 2012-05-18 00:14:02 +02:00
smp-r8a7779.c ARM / mach-shmobile: r8a7779 SMP TWD boot regression fix 2012-05-12 22:13:38 +02:00
smp-sh73a0.c ARM / mach-shmobile: sh73a0 SMP TWD boot regression fix 2012-05-12 22:13:45 +02:00
suspend.c ARM: shmobile: use machine specific hook for late init 2012-05-08 20:36:35 +08:00
timer.c ARM / mach-shmobile: Use preset_lpj with calibrate_delay() 2012-05-12 22:21:36 +02:00