time: Fixup fallout from recent clockevent/tick changes
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2014 15:00:46 +0000 (16:00 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 21 Jan 2015 22:08:21 +0000 (22:08 +0000)
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>
(cherry picked from commit f1689bb7abec8e2e670d8ad11eaa86d54bad8cfd)
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/clockchips.h
kernel/time/tick-internal.h

index 702935e1884c1bfae0a265e4606337ccb7279880..fd294ee03dcfb1ce6a7c720960ed6598bcb73689 100644 (file)
@@ -186,7 +186,7 @@ extern void tick_setup_hrtimer_broadcast(void);
 extern int tick_check_broadcast_expired(void);
 #else
 static inline int tick_check_broadcast_expired(void) { return 0; }
-static void tick_setup_hrtimer_broadcast(void) {};
+static inline void tick_setup_hrtimer_broadcast(void) {};
 #endif
 
 #ifdef CONFIG_GENERIC_CLOCKEVENTS
index ae120c263a74bd6deab4fa2c66a8108bfee64e74..c85edb18d68e4a848e90d9d2888e923020c6210f 100644 (file)
@@ -145,6 +145,8 @@ static inline int tick_device_is_functional(struct clock_event_device *dev)
        return !(dev->features & CLOCK_EVT_FEAT_DUMMY);
 }
 
+int __clockevents_update_freq(struct clock_event_device *dev, u32 freq);
+
 #endif
 
 extern void do_timer(unsigned long ticks);