Skip to content

Commit f1689bb

Browse files
committed
time: Fixup fallout from recent clockevent/tick changes
Make the stub function static inline instead of static and move the clockevents related function into the proper ifdeffed section. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Soren Brinkmann <soren.brinkmann@xilinx.com> Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
1 parent 5d1638a commit f1689bb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎include/linux/clockchips.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ extern void tick_setup_hrtimer_broadcast(void);
191191
extern int tick_check_broadcast_expired(void);
192192
#else
193193
static inline int tick_check_broadcast_expired(void) { return 0; }
194-
static void tick_setup_hrtimer_broadcast(void) {};
194+
static inline void tick_setup_hrtimer_broadcast(void) {};
195195
#endif
196196

197197
#ifdef CONFIG_GENERIC_CLOCKEVENTS

‎kernel/time/tick-internal.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ static inline int tick_device_is_functional(struct clock_event_device *dev)
155155
return !(dev->features & CLOCK_EVT_FEAT_DUMMY);
156156
}
157157

158+
int __clockevents_update_freq(struct clock_event_device *dev, u32 freq);
159+
158160
#endif
159161

160-
int __clockevents_update_freq(struct clock_event_device *dev, u32 freq);
161162
extern void do_timer(unsigned long ticks);
162163
extern void update_wall_time(void);

0 commit comments

Comments
 (0)