[PARISC] time: clocksource lost update_callback
authorKyle McMartin <kyle@mako.i.cabal.ca>
Tue, 27 Feb 2007 02:24:56 +0000 (21:24 -0500)
committerKyle McMartin <kyle@mako.i.cabal.ca>
Tue, 27 Feb 2007 02:24:56 +0000 (21:24 -0500)
So move the code to be called by smp_cpus_done, which is
after we've figured out if there's more than one cpu
actually present.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/kernel/smp.c
arch/parisc/kernel/time.c

index 6ba9257fdb7f196587f1198398ee215d394a08fc..bb6e6a38e91194ffa7385fee41a1399669504512 100644 (file)
@@ -567,6 +567,10 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
 
 void smp_cpus_done(unsigned int cpu_max)
 {
+       extern int update_cr16_clocksource(void);
+
+       update_cr16_clocksource();
+
        return;
 }
 
index d45f77f6290825f8e576e5bd948aa45d59305262..9b14066d693c2264a93ae057fc2e69c75ffed605 100644 (file)
@@ -176,8 +176,6 @@ static cycle_t read_cr16(void)
        return get_cycles();
 }
 
-static int cr16_update_callback(void);
-
 static struct clocksource clocksource_cr16 = {
        .name                   = "cr16",
        .rating                 = 300,
@@ -185,11 +183,11 @@ static struct clocksource clocksource_cr16 = {
        .mask                   = CLOCKSOURCE_MASK(BITS_PER_LONG),
        .mult                   = 0, /* to be set */
        .shift                  = 22,
-       .update_callback        = cr16_update_callback,
        .flags                  = CLOCK_SOURCE_IS_CONTINUOUS,
 };
 
-static int cr16_update_callback(void)
+#ifdef CONFIG_SMP
+int update_cr16_clocksource(void)
 {
        int change = 0;
 
@@ -202,7 +200,7 @@ static int cr16_update_callback(void)
 
        return change;
 }
-
+#endif /*CONFIG_SMP*/
 
 void __init start_cpu_itimer(void)
 {