lkml.org 
[lkml]   [2005]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Incorrect CLOCK_TICK_RATE in 2.6 kernel
From
Date
On Wed, 2005-08-24 at 17:24 -0700, George Anzinger wrote:
> CLOCK_TICK_RATE is used by the kernel to compute LATCH, TICK_NSEC and
> tick_nsec. This latter is used to update xtime each tick. TICK_NSEC is
> then used to compute (at compile time) the conversion constants needed
> to convert to/from jiffies from/to timespec and timeval (and others).
>
> The problem is that, if the timer being used is either Cyclone or HPET,
> the wrong CLOCK_TICK_RATE is used.

Err, the Cyclone does not generate interrupts. So this issue does not
affect those systems.

As for the HPET, it sets its own interrupt frequency based off of
KERNEL_TICK_USEC (which you're right, isn't quite what is used in the
jiffies conversions). Would it be easier to just adjust that value to
use ACTHZ or CLOCK_TICK_RATE?

thanks
-john





-
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/

\
 
 \ /
  Last update: 2005-08-25 02:36    [W:0.030 / U:1.120 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site