Skip to contentSkip to conversation

If the 'sched' parameter is unrecognized, choose the first scheduler

PATCH New George Dunlap 1 participant 1 message Feb 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 If the 'sched' parameter is unrecognized, choose the first scheduler

If the "sched" parameter is not recognized, chose the first scheduler in the list, rather than the last one.

xen/common/schedule.c +3 -0
diff -r 275e563ef9b0 xen/common/schedule.c
@@ -932,7 +932,10 @@
     }
     
     if ( schedulers[i] == NULL )
+    {
         printk("Could not find scheduler: %s\n", opt_sched);
+        ops = *schedulers[0];
+    }
 
     printk("Using scheduler: %s (%s)\n", ops.name, ops.opt_name);
     SCHED_OP(init);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel