Added a hack forcing protocols with priority>0 to be started up
immediately. Grrr, need to find a real solution some day.
This commit is contained in:
parent
2d14045224
commit
0e889c5254
1 changed files with 6 additions and 0 deletions
|
@ -319,6 +319,12 @@ proto_notify_state(struct proto *p, unsigned ps)
|
|||
ASSERT(ops == PS_DOWN || ops == PS_START);
|
||||
ASSERT(cs == FS_HUNGRY);
|
||||
DBG("%s: Scheduling meal\n", p->name);
|
||||
if (p->proto->priority) /* FIXME: Terrible hack to get synchronous device/kernel startup! */
|
||||
{
|
||||
p->core_state = FS_FEEDING;
|
||||
proto_feed(p);
|
||||
return;
|
||||
}
|
||||
cs = FS_FEEDING;
|
||||
p->attn->hook = proto_feed;
|
||||
ev_schedule(p->attn);
|
||||
|
|
Loading…
Reference in a new issue