diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-09-02 17:19:11 -0400 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-09-16 06:55:09 -0400 |
commit | 18aebf116b494101841f109f07e0d6a0aad9a46e (patch) | |
tree | 282a0fa22abd42e91a1afacd8e7f26708f218848 /drivers/cpuidle/cpuidle-zynq.c | |
parent | 61ce3ed57b40212a9ae79cebb44861a8c63df54a (diff) |
ARM: zynq: cpuidle: Remove pointless code
The core is not powered down, it is pointless to call the cpu_pm notifiers and
switch to the global timer.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-and-tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle-zynq.c')
-rw-r--r-- | drivers/cpuidle/cpuidle-zynq.c | 10 |
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 @@ | |||
38 | static int zynq_enter_idle(struct cpuidle_device *dev, | 37 | static 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 | }, |