===================================================================
@@ -107,11 +107,15 @@ static inline bool tick_resume_check_bro
static inline void tick_broadcast_init(void) { }
static inline int tick_broadcast_update_freq(struct clock_event_device *dev, u32 freq) { return -ENODEV; }
+#ifdef CONFIG_GENERIC_CLOCKEVENTS
/* Set the periodic handler in non broadcast mode */
static inline void tick_set_periodic_handler(struct clock_event_device *dev, int broadcast)
{
dev->event_handler = tick_handle_periodic;
}
+#else
+static void tick_handle_periodic(struct clock_event_device *dev) { }
+#endif
#endif /* !BROADCAST */
/* Functions related to oneshot broadcasting */