]> git.neil.brown.name Git - history.git/commit
[PATCH] itimer resolution and rounding fixes
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Aug 2003 04:14:45 +0000 (21:14 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 7 Aug 2003 04:14:45 +0000 (21:14 -0700)
commit1b70d78fb0088b510b8f95448d7c124842e24b59
treebad272906b7fe77a458b48414c08a73b4e0b1325
parent835980c4bb73fe6b5ff714c5f9a37a7e688018a9
[PATCH] itimer resolution and rounding fixes

From: george anzinger <george@mvista.com>

a) Fixes bug 858 (http://bugme.osdl.org/show_bug.cgi?id=858)

   The problem was caused by round off error in calculating the correct
   jiffies value in micro seconds to do the round up to jiffies.  The fix
   is to do the round up AFTER conversion to jiffies, rather than before.
   This only affected the timeval to jiffies calculation.

b) Changed the scale values to get the highest possible precision short
   of going to full 64-bit math.  This is particularly useful in the
   scaling of the seconds part of time.  The code now computes a trial
   value at compile time and adjusts the scaling if the result is less than
   32 bits.

c) Adds comments to time.h to remove (I hope) ALL the confusion that
   this file use to generate.
include/linux/time.h