diff options
| author | Chris Wilson <[email protected]> | 2010-08-09 21:20:10 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-12 16:53:39 +0000 |
| commit | 4936a3b90d79dd8775c6ac23c2cf2dcebe29abde (patch) | |
| tree | ab4fb288fd00bb50b5aebcc93fa476cc2c1d53be /fs/jbd/commit.c | |
| parent | timekeeping: Fix overflow in rawtime tv_nsec on 32 bit archs (diff) | |
| download | kernel-4936a3b90d79dd8775c6ac23c2cf2dcebe29abde.tar.gz kernel-4936a3b90d79dd8775c6ac23c2cf2dcebe29abde.zip | |
x86/hpet: Use the FSEC_PER_SEC constant for femto-second periods
The current computation, introduced with f12a15be63, of FSEC_PER_SEC using
the multiplication of (FSEC_PER_NSEC * NSEC_PER_SEC) is performed only
with 32bit integers on small machines, resulting in an overflow and a
*very* short intervals being programmed. An interrupt storm follows.
Note that we also have to specify FSEC_PER_SEC as being long long to
overcome the same limitations.
Signed-off-by: Chris Wilson <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Acked-by: H. Peter Anvin <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions
