diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-03-27 06:22:11 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-31 19:10:28 -0400 |
commit | a454afa5c371d862385db2bf3154d9ed9038246b (patch) | |
tree | a94cac3e57cd22352e7742575d8cee089add4e40 | |
parent | a06df062a189a8d5588babb8bf0bb78672497798 (diff) |
cpuidle: ux500: remove timer broadcast initialization
The initialization is done from the cpuidle framework.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | arch/arm/mach-ux500/cpuidle.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/arm/mach-ux500/cpuidle.c b/arch/arm/mach-ux500/cpuidle.c index 6d0c4b657a21..1b16d9ebecda 100644 --- a/arch/arm/mach-ux500/cpuidle.c +++ b/arch/arm/mach-ux500/cpuidle.c | |||
@@ -11,7 +11,6 @@ | |||
11 | 11 | ||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/cpuidle.h> | 13 | #include <linux/cpuidle.h> |
14 | #include <linux/clockchips.h> | ||
15 | #include <linux/spinlock.h> | 14 | #include <linux/spinlock.h> |
16 | #include <linux/atomic.h> | 15 | #include <linux/atomic.h> |
17 | #include <linux/smp.h> | 16 | #include <linux/smp.h> |
@@ -112,16 +111,6 @@ static struct cpuidle_driver ux500_idle_driver = { | |||
112 | .state_count = 2, | 111 | .state_count = 2, |
113 | }; | 112 | }; |
114 | 113 | ||
115 | /* | ||
116 | * For each cpu, setup the broadcast timer because we will | ||
117 | * need to migrate the timers for the states >= ApIdle. | ||
118 | */ | ||
119 | static void ux500_setup_broadcast_timer(void *arg) | ||
120 | { | ||
121 | int cpu = smp_processor_id(); | ||
122 | clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ON, &cpu); | ||
123 | } | ||
124 | |||
125 | int __init ux500_idle_init(void) | 114 | int __init ux500_idle_init(void) |
126 | { | 115 | { |
127 | int ret, cpu; | 116 | int ret, cpu; |
@@ -131,13 +120,6 @@ int __init ux500_idle_init(void) | |||
131 | prcmu_enable_wakeups(PRCMU_WAKEUP(ARM) | PRCMU_WAKEUP(RTC) | | 120 | prcmu_enable_wakeups(PRCMU_WAKEUP(ARM) | PRCMU_WAKEUP(RTC) | |
132 | PRCMU_WAKEUP(ABB)); | 121 | PRCMU_WAKEUP(ABB)); |
133 | 122 | ||
134 | /* | ||
135 | * Configure the timer broadcast for each cpu, that must | ||
136 | * be done from the cpu context, so we use a smp cross | ||
137 | * call with 'on_each_cpu'. | ||
138 | */ | ||
139 | on_each_cpu(ux500_setup_broadcast_timer, NULL, 1); | ||
140 | |||
141 | ret = cpuidle_register_driver(&ux500_idle_driver); | 123 | ret = cpuidle_register_driver(&ux500_idle_driver); |
142 | if (ret) { | 124 | if (ret) { |
143 | printk(KERN_ERR "failed to register ux500 idle driver\n"); | 125 | printk(KERN_ERR "failed to register ux500 idle driver\n"); |