]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cpuidle: imx6: remove timer broadcast initialization
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 27 Mar 2013 10:22:13 +0000 (10:22 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 31 Mar 2013 23:10:28 +0000 (01:10 +0200)
The initialization is done from the cpuidle framework.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/mach-imx/cpuidle-imx6q.c

index 5ae22f7018134c9cd82f1f0cc0c75ac1a6d40784..a783a6314b4f39fd7a294cc46f7ac78fe384e91c 100644 (file)
@@ -6,7 +6,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/clockchips.h>
 #include <linux/cpuidle.h>
 #include <linux/module.h>
 #include <asm/cpuidle.h>
@@ -43,17 +42,6 @@ done:
        return index;
 }
 
-/*
- * For each cpu, setup the broadcast timer because local timer
- * stops for the states other than WFI.
- */
-static void imx6q_setup_broadcast_timer(void *arg)
-{
-       int cpu = smp_processor_id();
-
-       clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ON, &cpu);
-}
-
 static struct cpuidle_driver imx6q_cpuidle_driver = {
        .name = "imx6q_cpuidle",
        .owner = THIS_MODULE,
@@ -84,8 +72,5 @@ int __init imx6q_cpuidle_init(void)
        /* Set chicken bit to get a reliable WAIT mode support */
        imx6q_set_chicken_bit();
 
-       /* Configure the broadcast timer on each cpu */
-       on_each_cpu(imx6q_setup_broadcast_timer, NULL, 1);
-
        return imx_cpuidle_init(&imx6q_cpuidle_driver);
 }