improved config support for sched framework
authorAnselm Busse <mail@anselm-busse.de>
Sun, 6 Sep 2015 08:03:55 +0000 (10:03 +0200)
committerAnselm Busse <mail@anselm-busse.de>
Sun, 6 Sep 2015 08:03:55 +0000 (10:03 +0200)
kernel/sched/Makefile
kernel/sched/modsched/Kconfig.debug

index f4a761b..d2b9d0c 100644 (file)
@@ -1,7 +1,4 @@
 KBUILD_CFLAGS += -Ikernel/sched/
 
-ifdef __KERN_ORG__
 obj-$(CONFIG_CFS_SCHED) += cfs/
-else
 obj-$(CONFIG_MOD_SCHED) += modsched/
-endif
\ No newline at end of file
index ceb824f..0355608 100644 (file)
@@ -9,11 +9,65 @@ choice
 config MOD_SCHED
         boolean "Modulized scheduler framework"
         help
-          Modulized scheduler framework developted by KBS Institute TU Berlin.
+          Modulized scheduler framework developed by KBS Institute TU Berlin.
 
 config CFS_SCHED
         boolean "Completely Fair Scheduler"
         help
-          Completely Fair Scheduler (CFS) is a process scheduler developt by Ingo Molnár. 
+          Completely Fair Scheduler (CFS) is a process scheduler developed by Ingo Molnár. 
 
 endchoice
+
+if MOD_SCHED
+       choice 
+               prompt "Topology"
+               default TOPO_SINGLE
+               
+               config TOPO_RR_SINGLE
+                       boolean "Single Core Topology"
+                       help
+                               Topology for a single core system.
+                       select MOD_ROUND_ROBIN
+
+               config TOPO_LB_RR_SINGLE
+                       boolean "Single Core Topology with Load Balancing"
+                       help
+                               Topology for a single core system with load balancing.
+                       select MOD_ROUND_ROBIN
+                       select MOD_LOAD_BALANCING
+                       select MOD_AFFINITIES
+
+               config TOPO_LB_RR_DUAL
+                       boolean "Dual Core Topology with Load Balancing"
+                       help
+                               Topology for a dual core system with load balancing.
+                       select MOD_ROUND_ROBIN
+                       select MOD_LOAD_BALANCING
+                       select MOD_AFFINITIES
+
+               config TOPO_LB_RR_MULTI
+                       boolean "Multi Core Topology with Load Balancing"
+                       help
+                               Topology for a multi core system with load balancing.
+                       select MOD_ROUND_ROBIN
+                       select MOD_LOAD_BALANCING
+                       select MOD_AFFINITIES
+       
+       endchoice
+
+       menu "Modules"
+               config MOD_TEMPLATE
+                       bool "Template Module"
+       
+               config MOD_ROUND_ROBIN
+                       bool "Round Robin Module"
+                       
+               config MOD_LOAD_BALANCING
+                       bool "Load Balancing Module"
+                       
+               config MOD_AFFINITIES
+                       bool "Affinities Component"
+       endmenu
+endif
+
+