Re: [PATCH] Fix jiffies_to_time[spec | val] and converse to use actual jiffies increment rather than 1/HZ

From: Russell King (rmk@arm.linux.org.uk)
Date: Tue Apr 15 2003 - 03:55:28 EST


On Tue, Apr 15, 2003 at 01:36:46AM -0700, george anzinger wrote:
> In the current system (2.5.67) time_spec to jiffies, time_val to
> jiffies and the converse (jiffies to time_val and jiffies to
> time_spec) all use 1/HZ as the measure of a jiffie. Because of the
> inability of the PIT to actually generate an accurate 1/HZ interrupt,
> the wall clock is updated with a more accurate value (999848
> nanoseconds per jiffie for HZ = 1000).

There's an increasing amount of 64-bit math appearing here, which gcc
has been historically bad with. Is there any chance that all this
extra complexity can vanish for architectures which do not have this
problem?

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:35 EST