From: Milton Miller Date: Fri, 14 Dec 2007 04:52:10 +0000 (+1100) Subject: [POWERPC] init_decrementer_clockevent can be static __init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c481887f2b74f87f714e2b76b8b834e57912bd0a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [POWERPC] init_decrementer_clockevent can be static __init as its only called from time_init, which is __init. Also remove unneeded forward declaration. Signed-off-by: Milton Miller Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index a925a8eae121..cc82fd675f91 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c @@ -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();