Chris Wilson 4936a3b90d 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 <chris@chris-wilson.co.uk>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-12 09:53:39 -07:00
..
2010-07-19 10:56:54 +02:00
2010-02-07 17:47:51 +01:00
2010-06-16 18:05:05 +02:00
2010-07-21 21:23:51 -07:00
2010-07-21 21:43:06 +02:00
2010-07-30 18:02:21 -07:00
2009-12-09 16:28:59 -08:00
2010-03-26 11:33:57 +01:00
2010-03-12 15:52:32 -08:00
2010-02-16 18:21:32 +01:00
2010-08-05 08:45:05 +02:00
2010-07-21 21:23:40 -07:00