Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119210
b: refs/heads/master
c: 93ce99e
h: refs/heads/master
v: v3
  • Loading branch information
Venki Pallipadi authored and Ingo Molnar committed Nov 17, 2008
1 parent 50a1311 commit 9fb1685
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26a3e99160cfb06a0a33e25b9fb0d516e2cc680d
refs/heads/master: 93ce99e849433ede4ce8b410b749dc0cad1100b2
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/tsc_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ static __cpuinit void check_tsc_warp(void)
cycles_t start, now, prev, end;
int i;

rdtsc_barrier();
start = get_cycles();
rdtsc_barrier();
/*
* The measurement runs for 20 msecs:
*/
Expand All @@ -61,7 +63,9 @@ static __cpuinit void check_tsc_warp(void)
*/
__raw_spin_lock(&sync_lock);
prev = last_tsc;
rdtsc_barrier();
now = get_cycles();
rdtsc_barrier();
last_tsc = now;
__raw_spin_unlock(&sync_lock);

Expand Down

0 comments on commit 9fb1685

Please sign in to comment.