]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
time: Make do_timer() and xtime_lock local to kernel/time/
authorTorben Hohn <torbenh@gmx.de>
Thu, 27 Jan 2011 15:00:32 +0000 (16:00 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 Jan 2011 18:26:50 +0000 (19:26 +0100)
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: Torben 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: Thomas Gleixner <tglx@linutronix.de>
include/linux/sched.h
include/linux/time.h
kernel/time/clockevents.c
kernel/time/jiffies.c
kernel/time/ntp.c
kernel/time/tick-broadcast.c
kernel/time/tick-common.c
kernel/time/tick-internal.h
kernel/time/tick-oneshot.c
kernel/time/tick-sched.c

index 9d9a0787eed3003e5fbf9780605c14506f5754ff..cdef640aa4465532e33f1cc83a3fda869aedb554 100644 (file)
@@ -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);
index ce29c86882b13debf2bd0a59b7702784067765eb..38c5206c2673ed6791304e605b761b7a4379f38a 100644 (file)
@@ -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);
index d7395fdfb9f38f931761e29d14534143dbe3799c..0d74b9ba90c84e0474b28a71ea9d43b76e4263f9 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/notifier.h>
 #include <linux/smp.h>
 #include <linux/sysdev.h>
-#include <linux/tick.h>
 
 #include "tick-internal.h"
 
index 2fbc207447974482259c7c68e2151bc94220f396..b2fa506667c0ab0091365052b5411b3d8335ab8c 100644 (file)
@@ -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
index 5c00242fa921cca007ee2f366493903e246d4769..ed8cfdf16983fce8ad31bbd10ae59c036d8c5204 100644 (file)
@@ -16,6 +16,8 @@
 #include <linux/mm.h>
 #include <linux/module.h>
 
+#include "tick-internal.h"
+
 /*
  * NTP timekeeping variables:
  */
index 48b2761b5668119bc932b6278289bf8a481be050..92ef9a54f0a44bf59f3c3e0e856c3d58ea9a3995 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/percpu.h>
 #include <linux/profile.h>
 #include <linux/sched.h>
-#include <linux/tick.h>
 
 #include "tick-internal.h"
 
index 051bc80a0c435cf47a8dfb8a0f5d2d49d20e188c..0e98fac3d4792a30a2672e87b27fb4c370648c47 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/percpu.h>
 #include <linux/profile.h>
 #include <linux/sched.h>
-#include <linux/tick.h>
 
 #include <asm/irq_regs.h>
 
index 290eefbc1f608ec4d9c957fb5798eb53490f9e7c..28c578568c9dc8736fa0fcb63e00b101a6e9c940 100644 (file)
@@ -1,6 +1,8 @@
 /*
  * tick internal variable and functions used by low/high res code
  */
+#include <linux/hrtimer.h>
+#include <linux/tick.h>
 
 #define TICK_DO_TIMER_NONE     -1
 #define TICK_DO_TIMER_BOOT     -2
@@ -132,3 +134,6 @@ static inline int tick_device_is_functional(struct clock_event_device *dev)
 {
        return !(dev->features & CLOCK_EVT_FEAT_DUMMY);
 }
+
+extern void do_timer(unsigned long ticks);
+extern seqlock_t xtime_lock;
index 5cbc101f908b8483938c0153fc1ac023bcd1c784..2d04411a5f05882ce41097e0ab607ffef38d318a 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/percpu.h>
 #include <linux/profile.h>
 #include <linux/sched.h>
-#include <linux/tick.h>
 
 #include "tick-internal.h"
 
index c55ea2433471c2952bd65283cd72eb165d720bbe..d5097c44b407e25a1acae0f5d85c520eda555ae5 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/percpu.h>
 #include <linux/profile.h>
 #include <linux/sched.h>
-#include <linux/tick.h>
 #include <linux/module.h>
 
 #include <asm/irq_regs.h>