aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2013-03-27 06:22:12 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-31 19:10:28 -0400
commit54769d653a8cf5e0fe7e78b92d7b4c4c65722b36 (patch)
tree185c17d7c6125f552a8454d623e7c9f70e69b382
parenta454afa5c371d862385db2bf3154d9ed9038246b (diff)
cpuidle: OMAP4: remove timer broadcast initialization
The initialization is done from the cpuidle framework. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--arch/arm/mach-omap2/cpuidle44xx.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c
index fe0e02545b23..f4b1b234939e 100644
--- a/arch/arm/mach-omap2/cpuidle44xx.c
+++ b/arch/arm/mach-omap2/cpuidle44xx.c
@@ -14,7 +14,6 @@
14#include <linux/cpuidle.h> 14#include <linux/cpuidle.h>
15#include <linux/cpu_pm.h> 15#include <linux/cpu_pm.h>
16#include <linux/export.h> 16#include <linux/export.h>
17#include <linux/clockchips.h>
18 17
19#include <asm/proc-fns.h> 18#include <asm/proc-fns.h>
20 19
@@ -158,16 +157,6 @@ fail:
158 return index; 157 return index;
159} 158}
160 159
161/*
162 * For each cpu, setup the broadcast timer because local timers
163 * stops for the states above C1.
164 */
165static void omap_setup_broadcast_timer(void *arg)
166{
167 int cpu = smp_processor_id();
168 clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ON, &cpu);
169}
170
171static DEFINE_PER_CPU(struct cpuidle_device, omap4_idle_dev); 160static DEFINE_PER_CPU(struct cpuidle_device, omap4_idle_dev);
172 161
173static struct cpuidle_driver omap4_idle_driver = { 162static struct cpuidle_driver omap4_idle_driver = {
@@ -233,9 +222,6 @@ int __init omap4_idle_init(void)
233 if (!cpu_clkdm[0] || !cpu_clkdm[1]) 222 if (!cpu_clkdm[0] || !cpu_clkdm[1])
234 return -ENODEV; 223 return -ENODEV;
235 224
236 /* Configure the broadcast timer on each cpu */
237 on_each_cpu(omap_setup_broadcast_timer, NULL, 1);
238
239 for_each_cpu(cpu_id, cpu_online_mask) { 225 for_each_cpu(cpu_id, cpu_online_mask) {
240 dev = &per_cpu(omap4_idle_dev, cpu_id); 226 dev = &per_cpu(omap4_idle_dev, cpu_id);
241 dev->cpu = cpu_id; 227 dev->cpu = cpu_id;