Fix for SuSE 9.0 2.4.21 kernel. Simplify jiffies_to_msecs() and
authorIan Abbott <abbotti@mev.co.uk>
Mon, 21 Aug 2006 16:25:12 +0000 (16:25 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 21 Aug 2006 16:25:12 +0000 (16:25 +0000)
commit8e765d0ad1eec6a3effde88891b01859fa71a3c7
tree87c232ee3c360c91642aa263041c00833e422e05
parentfbf305cae519a6c5a90d098703539788d3122b16
Fix for SuSE 9.0 2.4.21 kernel.  Simplify jiffies_to_msecs() and
msecs_to_jiffies() to avoid preprocessor optimisations that depend on
HZ being a C constant expression.  Just round the result up to the nearest
integer.  The supported range of input values (avoiding arithmetic overflow)
is now less than that of the Linux versions of these functions for common
values of HZ, but that's unlikely to cause any problems (and if it does we
can fix it by making the functions more complicated).
include/linux/time.h