[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 23/23] lib/uksched: Register preemptive scheduler to default init


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 8 Jul 2019 11:33:52 +0300
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx
  • Delivery-date: Mon, 08 Jul 2019 08:51:00 +0000
  • Ironport-phdr: 9a23:B1hoCxSzHW86R1nkk8rSoAsj3Npsv+yvbD5Q0YIujvd0So/mwa6yYxGN2/xhgRfzUJnB7Loc0qyK6vqmBTRLucrJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MQu6oR/eu8UKjoduNqk8wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9DoByvuQFxzYDXbo+SNvV+cLjQcc8GSWdbQspcTTBNDp+6YoASD+QBJ+FYr4zlqlYQqhu+HhWsBOLpyjRVgHH2wLU60/k8GgzBwAMgGMkOsGjVrNXzLqsSVf21zLHVzTjYc/xWwi3x6JDVch86u/2MR7VwfNPXxEIyFA3Flk2dpZHqMj+IzOgAsGiW4/B+We6xiWMrsQ98riCyysojl4XFnIEYx1De+Slnzos4K8e0RFN0bNK6FpZbqjuUOJFsQsw4RmFloCM6yrobtpGlZCUK05EnxwLHa/yAboiI/grvVOaPLjd8g3JoYKy/hxOo/kihzu3wTNW70E1Qoipdj9nDrWoB1wbU6sSfS/t9+Fmu2SqX2gzO5exIPFo4mKnbJpI73LI8iJgevV7NEyPunUX5lq6WdkEq+uiy7OTnZ63rqYObN49vlgH+M6Iulta7AeQlKggOQnOW9vin1LH55U35Xa5FgucskqneqJzaP9gUpralAw9J1YYu8xO/Dzag0NQZmnkHN0tJdw+ZgIj3JV7OJOv1DfO+g1S3jDdr3OrKP7L/DZXLNHTDl63hfbll4U5G1AUz1cxf545TCrwZLvL8REvxtN3ADhAnKQC0w/vnCNRh2YMfQm+PBLGWP7/WsVCS/e0jOfeDZJINsjbnN/cl/+LujWM+mVIFZqmp3J4XaHe+Hvh8IEWZfGTjgtEAEGgUpAozV+rqh0OeXj5XfXm9RLgw6S8mCNHuMYCWQ4GrgbuamSu2AJBSTmRHEUyXV2flccODQfhfRjiVJ5pKlScYVL7pb5I5yFn6vwjh17thaO7J4jAwvomlzMV/offUw0JhvQdoBtiQhjneB1p/mXkFEmc7
  • Ironport-sdr: B2SPFLzSLmFycO8z7e9WuFXK0BLlwVd9SHIAeKY0838o/uXVkDRQJpesqvkPQKE8zQVRspT2ri eoBwhjTc7Heg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

For now, cooperative and preemptive scheduling are mutually exclusive. Future
work may extend this and use both schedulers but on different CPUs.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 lib/uksched/sched.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/uksched/sched.c b/lib/uksched/sched.c
index 7422da6b..0c3086f9 100644
--- a/lib/uksched/sched.c
+++ b/lib/uksched/sched.c
@@ -41,6 +41,8 @@
 #include <uk/arch/tls.h>
 #if CONFIG_LIBUKSCHEDCOOP
 #include <uk/schedcoop.h>
+#elif CONFIG_LIBUKSCHEDPREEMPT
+#include <uk/schedpreempt.h>
 #endif
 
 struct uk_sched *uk_sched_head;
@@ -52,6 +54,8 @@ struct uk_sched *uk_sched_default_init(struct uk_alloc *a)
 
 #if CONFIG_LIBUKSCHEDCOOP
        s = uk_schedcoop_init(a);
+#elif CONFIG_LIBUKSCHEDPREEMPT
+       s = uk_schedpreempt_init(a);
 #endif
 
        return s;
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.