lkml.org 
[lkml]   [2004]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Re: boot time, process start time, and NOW time
On Fri, 3 Sep 2004, George Anzinger wrote:

> OGAWA Hirofumi wrote:
> > in time_init(), and hpet_time_init(),
> > xtime.tv_nsec = (INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ);
> > should be
> > xtime.tv_nsec = ((long)INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ);
> >
> > because
> > (INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ) == 296000000
> > and
> > ((long)INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ) == 0
>
> It is possible that I am missing something here, but I just don't see that it
> matters. If the wall clock is set jiffies is not changed so there is no implied
> or actual alignment between these two.
>
> Is there a calculation in the system that would differ if this were changed?

Yep, I also think it _should_ not matter at all. That's why I suggested
setting it to zero, but maybe we just shouldn't touch it..

Tim
-
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-03-22 14:05    [W:1.041 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site