Re: [parisc-linux] Re: [PATCH] Fix the cpumask rewrite
From: Alan Cox
Date: Sun Jun 27 2004 - 10:43:13 EST
On Sul, 2004-06-27 at 01:05, Chris Wedgwood wrote:
> I'm all for that, except last I counted there are about 5000 users of
> jiffies. What do you suggest as a replacement API?
For a lot of them they shouldn't be polling. For those that do in
most cases something like
struct timeout_timer t;
timeout_set(t, 5 * HZ)
timeout_cancel(t)
if(timeout_expired(t))
Where timeout_timer is effectively an existing timer of add_timer
style and a single variable. The code to build that kind of timer
on top of add_timer is trivial.
-
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/