From 2e36c317d16d352cf648aecad01c9cbe7be52f61 Mon Sep 17 00:00:00 2001 From: Mahesh Sivasubramanian Date: Fri, 19 Jan 2018 17:12:01 -0700 Subject: [PATCH] clockevents: Add NULL definition for tick_broadcast on UP For uniprocessor systems, add a NULL definition of tick_broadcast to add support for tick broadcast. Change-Id: I7dc47984cb6b60c9814171888f6adbc480a1e990 Signed-off-by: Mahesh Sivasubramanian --- include/linux/clockchips.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 8ae9a95ebf5b..fd9e0a145843 100644 --- a/include/linux/clockchips.h +++ b/include/linux/clockchips.h @@ -199,7 +199,7 @@ extern void clockevents_suspend(void); extern void clockevents_resume(void); # ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST -# ifdef CONFIG_ARCH_HAS_TICK_BROADCAST +# if defined(CONFIG_ARCH_HAS_TICK_BROADCAST) && defined(CONFIG_SMP) extern void tick_broadcast(const struct cpumask *mask); # else # define tick_broadcast NULL