[ARM] 4814/1: RealView: Add broadcasting clockevents support for ARM11MPCore
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-realview / platsmp.c
index fce3596f9950a6aea5d8489d9d674a99759ad7b0..bb5eaa48520d2d595a7529678e69ed1aff34c0ca 100644 (file)
@@ -187,10 +187,14 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
        if (max_cpus > ncores)
                max_cpus = ncores;
 
+#ifdef CONFIG_LOCAL_TIMERS
        /*
-        * Enable the local timer for primary CPU
+        * Enable the local timer for primary CPU. If the device is
+        * dummy (!CONFIG_LOCAL_TIMERS), it was already registers in
+        * realview_timer_init
         */
        local_timer_setup(cpu);
+#endif
 
        /*
         * Initialise the present map, which describes the set of CPUs