Skip to content

Commit

Permalink
[POWERPC] init_decrementer_clockevent can be static __init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Milton Miller authored and Paul Mackerras committed Dec 20, 2007
1 parent d7cf0ed commit c481887
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/powerpc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit c481887

Please sign in to comment.