Added handling of task pending events from scheduler.

Previously all pending events were handled on return of exceptions
in process context. This was causing threads that run in userspace
and take no exceptions not handle their pending events indefinitely.
Now scheduler handles them in irq context as well.
This commit is contained in:
Bahadir Balban
2009-11-01 01:03:17 +02:00
parent 0f537ea1f5
commit 5fd0f12017
5 changed files with 48 additions and 23 deletions
-9
View File
@@ -74,15 +74,6 @@ void do_irq(void)
printk("Spurious or broken irq\n"); BUG();
}
irq_enable(irq_index);
#if 0
/* Process any pending flags for currently runnable task */
if (!in_nested_irq_context()) {
if (in_user()) {
if (current->flags & TASK_SUSPENDING)
sched_suspend_async();
}
}
#endif
}