From: Chris Wilson Date: Mon, 9 Aug 2010 21:20:10 +0000 (-0700) Subject: x86/hpet: Use the FSEC_PER_SEC constant for femto-second periods X-Git-Tag: v2.6.36-rc1~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4936a3b90d79dd8775c6ac23c2cf2dcebe29abde;p=pandora-kernel.git 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 Signed-off-by: John Stultz Cc: Thomas Gleixner Acked-by: Ingo Molnar Acked-by: H. Peter Anvin Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed