summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-05-24 23:18:14 +0100
committerThomas Gleixner <tglx@linutronix.de>2021-05-31 17:04:44 +0200
commitc2d4fee3f6d170dee5ee7c337a0ba5e92fad7a64 (patch)
tree9b9afd41961f668d367bc0d87c24404f99843ede /kernel/time
parent1fa98d96ea0ff6c8770eeba90417aab4b4e07f52 (diff)
downloadlinux-stable-c2d4fee3f6d170dee5ee7c337a0ba5e92fad7a64.tar.gz
linux-stable-c2d4fee3f6d170dee5ee7c337a0ba5e92fad7a64.tar.bz2
linux-stable-c2d4fee3f6d170dee5ee7c337a0ba5e92fad7a64.zip
tick/broadcast: Drop unneeded CONFIG_GENERIC_CLOCKEVENTS_BROADCAST guard
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
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-broadcast.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index a44055228796..fb794ff4855e 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -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);
@@ -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).