aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/cpuidle-zynq.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-08 17:13:04 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-08 17:13:04 -0400
commitcf377ad7d42c566356d79049536d9cb37499cb77 (patch)
tree266371ff3a9462dcbaa9567e20c9a34722e3b32f /drivers/cpuidle/cpuidle-zynq.c
parent212fe84a6f215c39795a76517c1c02114d428681 (diff)
parentd8f0faa339b0beff6e055218e10b2982422db540 (diff)
Merge tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC platform changes from Arnd Bergmann: "New and updated SoC support. Among the things new for this release are: - at91: Added support for the new SAMA5D4 SoC, following the earlier SAMA5D3 - bcm: Added support for BCM63XX family of DSL SoCs - hisi: Added support for HiP04 server-class SoC - meson: Initial support for the Amlogic Meson6 (aka 8726MX) platform - shmobile: added support for new r8a7794 (R-Car E2) automotive SoC Noteworthy changes to existing SoC support are: - imx: convert i.MX1 to device tree - omap: lots of power management work - omap: base support to enable moving to standard UART driver - shmobile: lots of progress for multiplatform support, still ongoing" * tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (171 commits) ARM: hisi: depend on ARCH_MULTI_V7 CNS3xxx: Fix debug UART. ARM: at91: fix nommu build regression ARM: meson: add basic support for MesonX SoCs ARM: meson: debug: add debug UART for earlyprintk support irq: Export handle_fasteoi_irq ARM: mediatek: Add earlyprintk support for mt6589 ARM: hisi: Fix platmcpm compilation when ARMv6 is selected ARM: debug: fix alphanumerical order on debug uarts ARM: at91: document Atmel SMART compatibles ARM: at91: add sama5d4 support to sama5_defconfig ARM: at91: dt: add device tree file for SAMA5D4ek board ARM: at91: dt: add device tree file for SAMA5D4 SoC ARM: at91: SAMA5D4 SoC detection code and low level routines ARM: at91: introduce basic SAMA5D4 support clk: at91: add a driver for the h32mx clock ARM: pxa3xx: provide specific platform_devices for all ssp ports ARM: pxa: ssp: provide platform_device_id for PXA3xx ARM: OMAP4+: Remove static iotable mappings for SRAM ARM: OMAP4+: Move SRAM data to DT ...
Diffstat (limited to 'drivers/cpuidle/cpuidle-zynq.c')
-rw-r--r--drivers/cpuidle/cpuidle-zynq.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/cpuidle/cpuidle-zynq.c b/drivers/cpuidle/cpuidle-zynq.c
index aded75928028..c61b8b2a7c77 100644
--- a/drivers/cpuidle/cpuidle-zynq.c
+++ b/drivers/cpuidle/cpuidle-zynq.c
@@ -26,7 +26,6 @@
26 */ 26 */
27 27
28#include <linux/init.h> 28#include <linux/init.h>
29#include <linux/cpu_pm.h>
30#include <linux/cpuidle.h> 29#include <linux/cpuidle.h>
31#include <linux/platform_device.h> 30#include <linux/platform_device.h>
32#include <asm/proc-fns.h> 31#include <asm/proc-fns.h>
@@ -38,15 +37,9 @@
38static int zynq_enter_idle(struct cpuidle_device *dev, 37static int zynq_enter_idle(struct cpuidle_device *dev,
39 struct cpuidle_driver *drv, int index) 38 struct cpuidle_driver *drv, int index)
40{ 39{
41 /* Devices must be stopped here */
42 cpu_pm_enter();
43
44 /* Add code for DDR self refresh start */ 40 /* Add code for DDR self refresh start */
45 cpu_do_idle(); 41 cpu_do_idle();
46 42
47 /* Add code for DDR self refresh stop */
48 cpu_pm_exit();
49
50 return index; 43 return index;
51} 44}
52 45
@@ -59,8 +52,7 @@ static struct cpuidle_driver zynq_idle_driver = {
59 .enter = zynq_enter_idle, 52 .enter = zynq_enter_idle,
60 .exit_latency = 10, 53 .exit_latency = 10,
61 .target_residency = 10000, 54 .target_residency = 10000,
62 .flags = CPUIDLE_FLAG_TIME_VALID | 55 .flags = CPUIDLE_FLAG_TIME_VALID,
63 CPUIDLE_FLAG_TIMER_STOP,
64 .name = "RAM_SR", 56 .name = "RAM_SR",
65 .desc = "WFI and RAM Self Refresh", 57 .desc = "WFI and RAM Self Refresh",
66 }, 58 },