Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c481887f authored by Milton Miller's avatar Milton Miller Committed by Paul Mackerras
Browse files

[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: default avatarMilton Miller <miltonm@bga.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent d7cf0edb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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();