aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/time.c
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2007-12-13 23:52:10 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-20 00:15:37 -0500
commitc481887f2b74f87f714e2b76b8b834e57912bd0a (patch)
tree1989c7c40eea6c6c1e9791d70155715ccd6c3243 /arch/powerpc/kernel/time.c
parentd7cf0edb8f7d53bfc8b5e40893415d48656c0399 (diff)
[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 <miltonm@bga.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r--arch/powerpc/kernel/time.c3
1 files changed, 1 insertions, 2 deletions
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 = {
117}; 117};
118 118
119static DEFINE_PER_CPU(struct clock_event_device, decrementers); 119static DEFINE_PER_CPU(struct clock_event_device, decrementers);
120void init_decrementer_clockevent(void);
121static DEFINE_PER_CPU(u64, decrementer_next_tb); 120static DEFINE_PER_CPU(u64, decrementer_next_tb);
122 121
123#ifdef CONFIG_PPC_ISERIES 122#ifdef CONFIG_PPC_ISERIES
@@ -836,7 +835,7 @@ static void register_decrementer_clockevent(int cpu)
836 clockevents_register_device(dec); 835 clockevents_register_device(dec);
837} 836}
838 837
839void init_decrementer_clockevent(void) 838static void __init init_decrementer_clockevent(void)
840{ 839{
841 int cpu = smp_processor_id(); 840 int cpu = smp_processor_id();
842 841