@@ -332,9 +332,6 @@ extern ktime_t ktime_get_clocktai(void);
extern ktime_t ktime_get_update_offsets(ktime_t *offs_real, ktime_t *offs_boot,
ktime_t *offs_tai);
-DECLARE_PER_CPU(struct tick_device, tick_cpu_device);
-
-
/* Exported timer functions: */
/* Initialize timers: */
@@ -85,6 +85,8 @@ struct tick_sched {
extern void __init tick_init(void);
extern int tick_is_oneshot_available(void);
+
+DECLARE_PER_CPU(struct tick_device, tick_cpu_device);
extern struct tick_device *tick_get_device(int cpu);
# ifdef CONFIG_HIGH_RES_TIMERS
@@ -13,7 +13,6 @@ extern seqlock_t jiffies_lock;
#define TICK_DO_TIMER_NONE -1
#define TICK_DO_TIMER_BOOT -2
-DECLARE_PER_CPU(struct tick_device, tick_cpu_device);
extern ktime_t tick_next_period;
extern ktime_t tick_period;
extern int tick_do_timer_cpu __read_mostly;
'tick_cpu_device' isn't local to kernel/time/ directory as it is declared in hrtimer.h as well. Move its declaration to tick.h. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- include/linux/hrtimer.h | 3 --- include/linux/tick.h | 2 ++ kernel/time/tick-internal.h | 1 - 3 files changed, 2 insertions(+), 4 deletions(-)