Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2830b5c authored by Torben Hohn's avatar Torben Hohn Committed by Thomas Gleixner
Browse files

time: Make do_timer() and xtime_lock local to kernel/time/



All callers of do_timer() are converted to xtime_update(). The only
users of xtime_lock are in kernel/time/. Make both local to
kernel/time/ and remove them from the global header files.

[ tglx: Reuse tick-internal.h instead of creating another local header
  	file. Massaged changelog ]

Signed-off-by: default avatarTorben Hohn <torbenh@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: johnstul@us.ibm.com
Cc: yong.zhang0@gmail.com
Cc: hch@infradead.org
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent d12b0e24
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2049,7 +2049,6 @@ extern void release_uids(struct user_namespace *ns);

#include <asm/current.h>

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

extern int wake_up_state(struct task_struct *tsk, unsigned int state);
+0 −2
Original line number Diff line number Diff line
@@ -113,8 +113,6 @@ static inline struct timespec timespec_sub(struct timespec lhs,
#define timespec_valid(ts) \
	(((ts)->tv_sec >= 0) && (((unsigned long) (ts)->tv_nsec) < NSEC_PER_SEC))

extern seqlock_t xtime_lock;

extern void read_persistent_clock(struct timespec *ts);
extern void read_boot_clock(struct timespec *ts);
extern int update_persistent_clock(struct timespec now);
+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@
#include <linux/notifier.h>
#include <linux/smp.h>
#include <linux/sysdev.h>
#include <linux/tick.h>

#include "tick-internal.h"

+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@
#include <linux/module.h>
#include <linux/init.h>

#include "tick-internal.h"

/* The Jiffies based clocksource is the lowest common
 * denominator clock source which should function on
 * all systems. It has the same coarse resolution as
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@
#include <linux/mm.h>
#include <linux/module.h>

#include "tick-internal.h"

/*
 * NTP timekeeping variables:
 */
Loading