[POWERPC] init_decrementer_clockevent can be static __init
authorMilton Miller <miltonm@bga.com>
Fri, 14 Dec 2007 04:52:10 +0000 (15:52 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 05:15:37 +0000 (16:15 +1100)
as its only called from time_init, which is __init.

Also remove unneeded forward declaration.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/time.c

index a925a8eae121e1946c8d39959775b4b07de1c561..cc82fd675f9108a79abfb302c7996d2f6a893ef3 100644 (file)
@@ -117,7 +117,6 @@ static struct clock_event_device decrementer_clockevent = {
 };
 
 static DEFINE_PER_CPU(struct clock_event_device, decrementers);
-void init_decrementer_clockevent(void);
 static DEFINE_PER_CPU(u64, decrementer_next_tb);
 
 #ifdef CONFIG_PPC_ISERIES
@@ -836,7 +835,7 @@ static void register_decrementer_clockevent(int cpu)
        clockevents_register_device(dec);
 }
 
-void init_decrementer_clockevent(void)
+static void __init init_decrementer_clockevent(void)
 {
        int cpu = smp_processor_id();