Skip to content

Commit

Permalink
tick/broadcast: Drop unneeded CONFIG_GENERIC_CLOCKEVENTS_BROADCAST guard
Browse files Browse the repository at this point in the history
tick-broadcast.o is only built if CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
so remove the redundant #ifdef guards around the definition of
tick_receive_broadcast().

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210524221818.15850-2-will@kernel.org
  • Loading branch information
Will Deacon authored and Thomas Gleixner committed May 31, 2021
1 parent 1fa98d9 commit c2d4fee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/time/tick-broadcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)
return ret;
}

#ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
int tick_receive_broadcast(void)
{
struct tick_device *td = this_cpu_ptr(&tick_cpu_device);
Expand All @@ -268,7 +267,6 @@ int tick_receive_broadcast(void)
evt->event_handler(evt);
return 0;
}
#endif

/*
* Broadcast the event to the cpus, which are set in the mask (mangled).
Expand Down

0 comments on commit c2d4fee

Please sign in to comment.