Re: /proc or ps tools bug? 2.6.3, time is off

From: Tim Schmielau
Date: Sat May 01 2004 - 21:02:08 EST


On Sat, 1 May 2004, Andrew Morton wrote:

> Tim Schmielau <tim@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > +#if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0
>
> I think this has an inclusion ordering problem.
>
> In file included from net/ipv6/route.c:30:
> include/linux/times.h:11:42: division by zero in #if
> include/linux/times.h:42:42: division by zero in #if
>
> either NSEC_PER_SEC or USER_HZ hasn't been defined yet.
>

Yep, we'd need to include timex.h for it. This get's messy.

OK, I found why John's original patch didn't fix the issue, but I'd like
to hand the patch off to someone with a vision of how time shall be
handled in the kernel.

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