lkml.org 
[lkml]   [2006]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: time patches by Roman Zippel
On 14 Feb 2006 at 15:33, Roman Zippel wrote:

[...]
> > Assuming 1024Hz interrupt frequency:
> > (1µs * 1000) / 1024 == 0ns; 0 * 1024 == 0µs, not 1µs
> > (2µs * 1000) / 1024 == 1ns; 1 * 1024 == 1.024µs, not 2µs
>
> Ok, I didn't put much effort into optimizing it for uncommon HZ values.
> Why is it so important? It's currently unused on any Linux machine
> synchronized via NTP.

Roman,

how do you know? When using "disable kernel", NTP relies on adjtime() to adjust
the time. Some people even prefer that, because the algorithms do floating point
math in user space instead of fixed-point maths in kernel space.

[...]

Regards,
Ulrich

-
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: 2006-02-15 08:28    [W:0.089 / U:1.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site