Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62365
b: refs/heads/master
c: 8180a55
h: refs/heads/master
i:
  62363: 596bb02
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jul 22, 2007
1 parent 6baa0d5 commit c9f7a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e82f64e5bb0648a13630d752c35be1e7bd8bab96
refs/heads/master: 8180a550284bf2c8e13414082fc20b8983c2c401
4 changes: 2 additions & 2 deletions trunk/arch/x86_64/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ int hpet_reenable(void)
*/

#define TICK_COUNT 100000000
#define TICK_MIN 5000
#define SMI_THRESHOLD 50000
#define MAX_TRIES 5

/*
Expand All @@ -205,7 +205,7 @@ static void __init read_hpet_tsc(int *hpet, int *tsc)
tsc1 = get_cycles_sync();
hpet1 = hpet_readl(HPET_COUNTER);
tsc2 = get_cycles_sync();
if (tsc2 - tsc1 > TICK_MIN)
if ((tsc2 - tsc1) < SMI_THRESHOLD)
break;
}
*hpet = hpet1;
Expand Down

0 comments on commit c9f7a7e

Please sign in to comment.