diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-04-03 08:15:16 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-08 16:20:05 -0400 |
commit | 688036b538974de32ce55be8b0e013b003992abc (patch) | |
tree | 4574bee91d3a04e3b783b07d98e9a0042da4d2e4 /arch/arm/mach-shmobile/cpuidle.c | |
parent | d50470979090bb5fa6c198d0ef87276658deb5f9 (diff) |
ARM: shmobile: cpuidle: remove useless WFI function
Remove the shmobile_enter_wfi function which is the same as the
common WFI enter function from the arm cpuidle driver defined
with the ARM_CPUIDLE_WFI_STATE macro.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm/mach-shmobile/cpuidle.c')
-rw-r--r-- | arch/arm/mach-shmobile/cpuidle.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/mach-shmobile/cpuidle.c b/arch/arm/mach-shmobile/cpuidle.c index 068f9ca8715f..c872ae8c1cb9 100644 --- a/arch/arm/mach-shmobile/cpuidle.c +++ b/arch/arm/mach-shmobile/cpuidle.c | |||
@@ -16,20 +16,12 @@ | |||
16 | #include <asm/cpuidle.h> | 16 | #include <asm/cpuidle.h> |
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | 18 | ||
19 | int shmobile_enter_wfi(struct cpuidle_device *dev, struct cpuidle_driver *drv, | ||
20 | int index) | ||
21 | { | ||
22 | cpu_do_idle(); | ||
23 | return 0; | ||
24 | } | ||
25 | |||
26 | static struct cpuidle_device shmobile_cpuidle_dev; | 19 | static struct cpuidle_device shmobile_cpuidle_dev; |
27 | static struct cpuidle_driver shmobile_cpuidle_default_driver = { | 20 | static struct cpuidle_driver shmobile_cpuidle_default_driver = { |
28 | .name = "shmobile_cpuidle", | 21 | .name = "shmobile_cpuidle", |
29 | .owner = THIS_MODULE, | 22 | .owner = THIS_MODULE, |
30 | .en_core_tk_irqen = 1, | 23 | .en_core_tk_irqen = 1, |
31 | .states[0] = ARM_CPUIDLE_WFI_STATE, | 24 | .states[0] = ARM_CPUIDLE_WFI_STATE, |
32 | .states[0].enter = shmobile_enter_wfi, | ||
33 | .safe_state_index = 0, /* C1 */ | 25 | .safe_state_index = 0, /* C1 */ |
34 | .state_count = 1, | 26 | .state_count = 1, |
35 | }; | 27 | }; |