Re: [PATCH] Re: boot time, process start time, and NOW time

From: Tim Schmielau
Date: Fri Sep 03 2004 - 02:21:27 EST


On Fri, 3 Sep 2004, OGAWA Hirofumi wrote:

> Since INITIAL_JIFFIES is -5 minutes, so I though tv.tv_nsec should be 0.
> The cause of this is
>
> INITIAL_JIFFIES % HZ (4294667296 % 1000)
>
> because INITIAL_JIFFIES is unsigned long.
>
> So, I guessed this is not intention.
> Looks like this should be (-300*1000) % 1000.

I think actually the whole xtime initialisation

xtime.tv_nsec = (INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ);

is bogus. INITIAL_JIFFIES should not be connected to any actual time, so
this should really just be

xtime.tv_nsec = 0;

I'll try to do a patch later on, and see what happens. Have to do some
work-related things now.

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