提交 c481887f 编写于 作者: M Milton Miller 提交者: Paul Mackerras

[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: NMilton Miller <miltonm@bga.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 d7cf0edb
...@@ -117,7 +117,6 @@ static struct clock_event_device decrementer_clockevent = { ...@@ -117,7 +117,6 @@ static struct clock_event_device decrementer_clockevent = {
}; };
static DEFINE_PER_CPU(struct clock_event_device, decrementers); static DEFINE_PER_CPU(struct clock_event_device, decrementers);
void init_decrementer_clockevent(void);
static DEFINE_PER_CPU(u64, decrementer_next_tb); static DEFINE_PER_CPU(u64, decrementer_next_tb);
#ifdef CONFIG_PPC_ISERIES #ifdef CONFIG_PPC_ISERIES
...@@ -836,7 +835,7 @@ static void register_decrementer_clockevent(int cpu) ...@@ -836,7 +835,7 @@ static void register_decrementer_clockevent(int cpu)
clockevents_register_device(dec); clockevents_register_device(dec);
} }
void init_decrementer_clockevent(void) static void __init init_decrementer_clockevent(void)
{ {
int cpu = smp_processor_id(); int cpu = smp_processor_id();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册