Skip to content

Commit

Permalink
tick: Move clocksource related stuff to timekeeping.h
Browse files Browse the repository at this point in the history
Move clocksource related stuff to timekeeping.h and remove the
pointless include from ntp.c

Signed-off-by: Thomas Gleixner <[email protected]>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
KAGA-KOKO authored and Ingo Molnar committed Apr 1, 2015
1 parent 9f083b7 commit bfb83b2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion kernel/time/clocksource.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/tick.h>
#include <linux/kthread.h>

#include "tick-internal.h"
#include "timekeeping.h"
#include "timekeeping_internal.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion kernel/time/jiffies.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/module.h>
#include <linux/init.h>

#include "tick-internal.h"
#include "timekeeping.h"

/* The Jiffies based clocksource is the lowest common
* denominator clock source which should function on
Expand Down
1 change: 0 additions & 1 deletion kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/module.h>
#include <linux/rtc.h>

#include "tick-internal.h"
#include "ntp_internal.h"

/*
Expand Down
6 changes: 0 additions & 6 deletions kernel/time/tick-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

#include "timekeeping.h"

extern seqlock_t jiffies_lock;

#define CS_NAME_LEN 32

#ifdef CONFIG_GENERIC_CLOCKEVENTS

#define TICK_DO_TIMER_NONE -1
Expand Down Expand Up @@ -169,5 +165,3 @@ int __clockevents_update_freq(struct clock_event_device *dev, u32 freq);

#endif /* GENERIC_CLOCKEVENTS */

extern void do_timer(unsigned long ticks);
extern void update_wall_time(void);
7 changes: 7 additions & 0 deletions kernel/time/timekeeping.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ extern void timekeeping_clocktai(struct timespec *ts);
extern int timekeeping_suspend(void);
extern void timekeeping_resume(void);

extern void do_timer(unsigned long ticks);
extern void update_wall_time(void);

extern seqlock_t jiffies_lock;

#define CS_NAME_LEN 32

#endif

0 comments on commit bfb83b2

Please sign in to comment.