Re: calling kthread_create() from interrupt thread

From: Roland Dreier
Date: Tue Jun 15 2004 - 14:32:34 EST


Robin> The problem Dean is trying to address is as follows:

Robin> We receive an interrupt. The interrupt handler determines
Robin> that some work needs to be done. Part of that work to be
Robin> done may result in the process needing to go to sleep
Robin> waiting for a resource to become available.

Robin> Currently, the interrupt handler wakes a thread sleeping on
Robin> a wait_event_interruptible(). This wakeup is taking approx
Robin> 35uSec. Dean is looking for a lower latency means of doing
Robin> the wakeup.

Could the interrupt handler attempt to do the work directly, and only
defer things if it determines it needs to sleep for the resource? It
seems if your are sleeping waiting for something to free up, then
your latency is shot anyway.

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