From 5e6be17d08b30e6ac29e6bcdc0227c37facc7f2e Mon Sep 17 00:00:00 2001 From: John Stultz Date: Mon, 14 Nov 2011 11:46:39 -0800 Subject: [PATCH] --- yaml --- r: 288789 b: refs/heads/master c: 8fcce546be16130865550136831f71097d7fc228 h: refs/heads/master i: 288787: 9eaaf3751fa13df760a4dd1ef91367bc2e23c46a v: v3 --- [refs] | 2 +- trunk/kernel/time/timekeeping.c | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/[refs] b/[refs] index c8847c338734..a133e554d249 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 01f71b47e08f2a062c4e77c94dfa9a7e0ae65fcb +refs/heads/master: 8fcce546be16130865550136831f71097d7fc228 diff --git a/trunk/kernel/time/timekeeping.c b/trunk/kernel/time/timekeeping.c index fbbc3c7ce7df..5df2e7e556ca 100644 --- a/trunk/kernel/time/timekeeping.c +++ b/trunk/kernel/time/timekeeping.c @@ -73,6 +73,18 @@ struct timekeeper { static struct timekeeper timekeeper; +/* + * This read-write spinlock protects us from races in SMP while + * playing with xtime. + */ +__cacheline_aligned_in_smp DEFINE_SEQLOCK(xtime_lock); + + +/* flag for if timekeeping is suspended */ +int __read_mostly timekeeping_suspended; + + + /** * timekeeper_setup_internals - Set up internals to use clocksource clock. * @@ -157,18 +169,6 @@ static inline s64 timekeeping_get_ns_raw(void) return clocksource_cyc2ns(cycle_delta, clock->mult, clock->shift); } -/* - * This read-write spinlock protects us from races in SMP while - * playing with xtime. - */ -__cacheline_aligned_in_smp DEFINE_SEQLOCK(xtime_lock); - - - - -/* flag for if timekeeping is suspended */ -int __read_mostly timekeeping_suspended; - /* must hold xtime_lock */ void timekeeping_leap_insert(int leapsecond) {