Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288789
b: refs/heads/master
c: 8fcce54
h: refs/heads/master
i:
  288787: 9eaaf37
v: v3
  • Loading branch information
John Stultz committed Jan 27, 2012
1 parent be9edb0 commit 5e6be17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01f71b47e08f2a062c4e77c94dfa9a7e0ae65fcb
refs/heads/master: 8fcce546be16130865550136831f71097d7fc228
24 changes: 12 additions & 12 deletions trunk/kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 5e6be17

Please sign in to comment.