* [PATCH] If the 'sched' parameter is unrecognized, choose the first scheduler
@ 2010-02-15 16:18 George Dunlap
0 siblings, 0 replies; only message in thread
From: George Dunlap @ 2010-02-15 16:18 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
If the "sched" parameter is not recognized, chose the first scheduler
in the list, rather than the last one.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
[-- Attachment #2: 20100215-sched-default-first-scheduler.diff --]
[-- Type: text/x-patch, Size: 426 bytes --]
diff -r 275e563ef9b0 xen/common/schedule.c
--- a/xen/common/schedule.c Mon Feb 15 14:03:57 2010 +0000
+++ b/xen/common/schedule.c Mon Feb 15 14:04:38 2010 +0000
@@ -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);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-15 16:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-15 16:18 [PATCH] If the 'sched' parameter is unrecognized, choose the first scheduler George Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).