Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109646
b: refs/heads/master
c: 72d43d9
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Sep 6, 2008
1 parent bbb0fc7 commit 181d95c
Show file tree
Hide file tree
Showing 2 changed files with 8 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: f7676254f179eac6b5244a80195ec8ae0e9d4606
refs/heads/master: 72d43d9bc9210d24d09202eaf219eac09e17b339
7 changes: 7 additions & 0 deletions trunk/arch/x86/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,13 @@ static int hpet_legacy_next_event(unsigned long delta,
cnt += (u32) delta;
hpet_writel(cnt, HPET_T0_CMP);

/*
* We need to read back the CMP register to make sure that
* what we wrote hit the chip before we compare it to the
* counter.
*/
WARN_ON((u32)hpet_readl(HPET_T0_CMP) != cnt);

return (s32)((u32)hpet_readl(HPET_COUNTER) - cnt) >= 0 ? -ETIME : 0;
}

Expand Down

0 comments on commit 181d95c

Please sign in to comment.