Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72353
b: refs/heads/master
c: edaf420
h: refs/heads/master
i:
  72351: fcad607
v: v3
  • Loading branch information
Dave Johnson authored and Thomas Gleixner committed Oct 23, 2007
1 parent 681f20f commit 2480308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 418ccbe37f70f5021c4cd1cdcb0ce7f98d05f2dd
refs/heads/master: edaf420fdc122e7a42326fe39274c8b8c9b19d41
5 changes: 2 additions & 3 deletions trunk/arch/x86/kernel/tsc_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ unsigned long native_calculate_cpu_khz(void)
{
unsigned long long start, end;
unsigned long count;
u64 delta64;
u64 delta64 = (u64)ULLONG_MAX;
int i;
unsigned long flags;

Expand All @@ -143,6 +143,7 @@ unsigned long native_calculate_cpu_khz(void)
rdtscll(start);
mach_countup(&count);
rdtscll(end);
delta64 = min(delta64, (end - start));
}
/*
* Error: ECTCNEVERSET
Expand All @@ -153,8 +154,6 @@ unsigned long native_calculate_cpu_khz(void)
if (count <= 1)
goto err;

delta64 = end - start;

/* cpu freq too fast: */
if (delta64 > (1ULL<<32))
goto err;
Expand Down

0 comments on commit 2480308

Please sign in to comment.