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

Commit 37b64a42 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

tick/broadcast: Unbreak CONFIG_GENERIC_CLOCKEVENTS=n build



Making tick_broadcast_oneshot_control() independent from
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST broke the build for
CONFIG_GENERIC_CLOCKEVENTS=n because the function is not defined
there.

Provide a proper stub inline.

Fixes: f32dd117 'tick/broadcast: Make idle check independent from mode and config'
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent c4288334
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -67,7 +67,14 @@ extern void tick_broadcast_control(enum tick_broadcast_mode mode);
static inline void tick_broadcast_control(enum tick_broadcast_mode mode) { }
static inline void tick_broadcast_control(enum tick_broadcast_mode mode) { }
#endif /* BROADCAST */
#endif /* BROADCAST */


#ifdef CONFIG_GENERIC_CLOCKEVENTS
extern int tick_broadcast_oneshot_control(enum tick_broadcast_state state);
extern int tick_broadcast_oneshot_control(enum tick_broadcast_state state);
#else
static inline int tick_broadcast_oneshot_control(enum tick_broadcast_state state)
{
	return 0;
}
#endif


static inline void tick_broadcast_enable(void)
static inline void tick_broadcast_enable(void)
{
{