Re: [parisc-linux] Re: [PATCH] Fix the cpumask rewrite

From: Pavel Machek
Date: Thu Jul 01 2004 - 08:57:07 EST


Hi!

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

Plus some get_jiffies api for stuff like printk ratelimit would be needed,
right?
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

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