Re: Fwd: [PATCH] hangcheck-timer

john stultz (johnstul@us.ibm.com)
16 Jan 2003 16:55:20 -0800


> Attached is a patch adding hangcheck-timer. It is used to detect
> when the system goes out to lunch for a period of time, and then
> returns. This is interesting for debugging drivers as well as for
> clustering environments.
> The module sets a timer. When the timer goes off, it then uses
> get_cycles() to determine how much real time has passed.

This won't work on systems which do not have synchronized TSCs. Might
you consider using do_gettimeofday() instead?

thanks
-john

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