Converted all wait/wakeup runqueue lock/unlock paths to irq versions.

Irqs can now touch runqueues and do async wakeups. This necessitated
that we implement all wake up wait and runqueue locking work with irqs.

All this, assumes that in an SMP setup we may have cross-cpu wake ups,
runqueue manipulation. If we later decide that we only wake up threads
in the current container, (and lock containers to cpus) we won't really
need spinlocks, or irq disabling anymore. The current set up might be
trivially less responsive, but is more flexible.
This commit is contained in:
Bahadir Balban
2009-12-12 01:20:14 +02:00
parent b1614191b3
commit 32c0bb3a76
11 changed files with 155 additions and 72 deletions

View File

@@ -7,6 +7,7 @@
#define __GENERIC_IRQ_H__
#include <l4/lib/string.h>
#include <l4/lib/wait.h>
#include INC_PLAT(irq.h)
#include INC_ARCH(types.h)
@@ -45,6 +46,9 @@ struct irq_desc {
/* Notification slot for this irq */
int task_notify_slot;
/* Waitqueue head for this irq */
struct waitqueue_head wqh_irq;
/* NOTE: This could be a list for multiple handlers for shared irqs */
irq_handler_t handler;
};