]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Early dummy clockevent registration on boot CPU.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 7 Aug 2008 16:18:48 +0000 (01:18 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 01:35:03 +0000 (10:35 +0900)
The dummy timer needs to be registered on the boot CPU before the
system timer clockevent is registered, or broadcasting doesn't work
as advertized.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/time_32.c

index decee0a453ab0b949bf996eb31ed60a95c0bb178..e2f74cc71d8c5b8508b89ffb59582c1ac49f678f 100644 (file)
@@ -254,6 +254,10 @@ void __init time_init(void)
        set_normalized_timespec(&wall_to_monotonic,
                                -xtime.tv_sec, -xtime.tv_nsec);
 
+#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
+       local_timer_setup(smp_processor_id());
+#endif
+
        /*
         * Find the timer to use as the system timer, it will be
         * initialized for us.
@@ -261,9 +265,6 @@ void __init time_init(void)
        sys_timer = get_sys_timer();
        printk(KERN_INFO "Using %s for system timer\n", sys_timer->name);
 
-#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
-       local_timer_setup(smp_processor_id());
-#endif
 
        if (sys_timer->ops->read)
                clocksource_sh.read = sys_timer->ops->read;