mirror of
https://github.com/drasko/codezero.git
synced 2026-01-19 06:13:16 +01:00
Moved scheduler from containers back to being a global.
It makes more sense to have a scheduler (or runqueue pair) per-cpu rather than per-container. This provides more flexible global scheduling policy that is also simpler due to all scheduling details being controlled from a single point.
This commit is contained in:
@@ -27,8 +27,6 @@ int container_init(struct container *c)
|
||||
for (int i = 0; i < CONFIG_MAX_PAGERS_USED; i++)
|
||||
cap_list_init(&c->pager[i].cap_list);
|
||||
|
||||
/* Init scheduler */
|
||||
sched_init(&c->scheduler);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user