xen: Remove sched_credit_default_yield option
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 1 Oct 2012 19:03:19 +0000 (20:03 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 1 Oct 2012 19:03:19 +0000 (20:03 +0100)
The sched_credit_default_yield option was added when the behavior of
"SCHEDOP_yield" was changed in 4.1, to allow any users who had
problems to revert to the old behavior.  The new behavior has been in
Xen.org xen since 4.1, and in XenServer even longer, and there is no
evidence of anyone having trouble with it.  Remove the option.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
docs/misc/xen-command-line.markdown
xen/common/sched_credit.c

index 5b18e10311e620ed863dc825e149df55eda0d2af..54f294a084b84fb2ab558643f3e35113e5cd820f 100644 (file)
@@ -734,9 +734,6 @@ Choose the default scheduler.
 ### sched\_credit2\_migrate\_resist
 > `= <integer>`
 
-### sched\_credit\_default\_yield
-> `= <boolean>`
-
 ### sched\_credit\_tslice\_ms
 > `= <integer>`
 
index df1ba3249bdac22bdd901b38945f95b998775b4b..577de5d445fd62241a22a7b6b07e44f6bc34067f 100644 (file)
 /*
  * Boot parameters
  */
-static bool_t __read_mostly sched_credit_default_yield;
-boolean_param("sched_credit_default_yield", sched_credit_default_yield);
 static int __read_mostly sched_credit_tslice_ms = CSCHED_DEFAULT_TSLICE_MS;
 integer_param("sched_credit_tslice_ms", sched_credit_tslice_ms);
 
@@ -783,11 +781,8 @@ csched_vcpu_yield(const struct scheduler *ops, struct vcpu *vc)
 {
     struct csched_vcpu * const sv = CSCHED_VCPU(vc);
 
-    if ( !sched_credit_default_yield )
-    {
-        /* Let the scheduler know that this vcpu is trying to yield */
-        sv->flags |= CSCHED_FLAG_VCPU_YIELD;
-    }
+    /* Let the scheduler know that this vcpu is trying to yield */
+    sv->flags |= CSCHED_FLAG_VCPU_YIELD;
 }
 
 static int