diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-05-11 09:40:18 +0200 |
---|---|---|
committer | said m bagheri <ebgheri@steludxu2848.(none)> | 2011-06-17 13:41:59 +0200 |
commit | e8eeb76a8ca01f0cdbcdacdea1e631fffb43f727 (patch) | |
tree | 39ad5aaa46c160ca1cd478e5c6bfc428d0f9f543 /arch/arm/mach-ux500/pm | |
parent | 44d6800bc4dca08f6a72d1f05784f1e69b314323 (diff) |
ARM: ux500: cpuidle: Remove dead code
Since cpuidle nowadays only works on online cpu's there
is no need to specially inform cpuidle when a cpu goes off
line.
ST-Ericsson Linux next: ER338824
ST-Ericsson ID: ER338876
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I35300aa9c7f076e70a40f1bb344dc0224e4cc129
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/23097
Reviewed-by: QATEST
Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/pm')
-rw-r--r-- | arch/arm/mach-ux500/pm/cpuidle.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-ux500/pm/cpuidle.h | 13 |
2 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-ux500/pm/cpuidle.c b/arch/arm/mach-ux500/pm/cpuidle.c index 057868390fc..577a0f4ba24 100644 --- a/arch/arm/mach-ux500/pm/cpuidle.c +++ b/arch/arm/mach-ux500/pm/cpuidle.c @@ -187,20 +187,6 @@ struct cstate *ux500_ci_get_cstates(int *len) return cstates; } -/* - * cpuidle & hotplug - plug or unplug a cpu in idle sequence - */ -void ux500_cpuidle_plug(int cpu) -{ - atomic_dec(&idle_cpus_counter); - wmb(); -} -void ux500_cpuidle_unplug(int cpu) -{ - atomic_inc(&idle_cpus_counter); - wmb(); -} - static void restore_sequence(ktime_t now) { int this_cpu = smp_processor_id(); diff --git a/arch/arm/mach-ux500/pm/cpuidle.h b/arch/arm/mach-ux500/pm/cpuidle.h index 5dd422d55bb..618e0f969e5 100644 --- a/arch/arm/mach-ux500/pm/cpuidle.h +++ b/arch/arm/mach-ux500/pm/cpuidle.h @@ -71,17 +71,4 @@ struct cstate { struct cstate *ux500_ci_get_cstates(int *len); -#ifdef CONFIG_U8500_CPUIDLE -void ux500_cpuidle_plug(int cpu); -void ux500_cpuidle_unplug(int cpu); -#else -static inline void ux500_cpuidle_plug(int cpu) -{ -} - -static inline void ux500_cpuidle_unplug(int cpu) -{ -} -#endif - #endif |