On 7/9/07, Dmitry Torokhov <[EMAIL PROTECTED]> wrote:
> Sounds good, then. It's a bit of a hack, but the benefits are well
> worth it (if we can resolve the scheduling issue).

You know, I slept on it and I think I want to move the polldev into
opposite direction - to accomodte devices that need "relaxed" polling
and are ok with polling being a bit irregular and maybe even rounded
to next jiffy or something to better accomodate tickless kernels.

How about letting drivers and/or clients explicitly express their
scheduling needs, e.g., in terms of a desired polling rate and a
desired bound on scheduling irregularity? Given these requirements,
input-polldev will try to satisfy all requests (i.e., the harshest
one) made by the driver and current clients, on a "best effort" basis,
using minimal resources. (There should also be a way for a driver to
say "don't bother to poll more often than X or with regularity better
than Y even if a client asks for it -- the hardware isn't that fast
anyway".)

This way the same infrastructure could smoothly handle devices and
apps with vastly different polling needs.

That doesn't help much with the workqueue vs. timers issue, of course,
unless input-polldev implements *both*.

 Shem
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to