Re: [PATCH][2.5] hangcheck-timer

Joel Becker (Joel.Becker@oracle.com)
Tue, 21 Jan 2003 09:29:41 -0800


On Mon, Jan 20, 2003 at 06:45:57PM -0800, john stultz wrote:
> > I'll look into it, but it must absolutely be in terms of wall
> > clock time as measured from outside the system.
>
> Completely understandable. do_gettimeofday will give you just that (w/o
> the conversion muck w/ HZ and loops_per_jiffy).

It looks as though gettimeofday calculates wall time from
jiffies. If you udelay(), jiffies doesn't increment and you lose time
(this is exactly what I'm trying to track here). How does gettimeofday
avoid this (maybe I'm misreading the code)?

Joel

-- 

"Can any of you seriously say the Bill of Rights could get through Congress today? It wouldn't even get out of committee." - F. Lee Bailey

Joel Becker Senior Member of Technical Staff Oracle Corporation E-mail: joel.becker@oracle.com Phone: (650) 506-8127 - 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/