time: Fixup fallout from recent clockevent/tick changes
authorThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2014 15:00:46 +0000 (16:00 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 7 Feb 2014 15:00:46 +0000 (16:00 +0100)
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>
include/linux/clockchips.h
kernel/time/tick-internal.h

index dbe9e14571680d843663f57cd07163e4c468a633..20a7183f2831dcb4fc4e3cef3ed363751e069e19 100644 (file)
@@ -191,7 +191,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 0756c62c219aae7e4e9e5fbde05dbb88fc38c0d1..7ab92b19965a65934f2cd06de6f4fa34be74dce4 100644 (file)
@@ -155,8 +155,9 @@ 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
 
-int __clockevents_update_freq(struct clock_event_device *dev, u32 freq);
 extern void do_timer(unsigned long ticks);
 extern void update_wall_time(void);