]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
scheduler: Add a #define for the default ratelimit
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 23 Feb 2012 10:15:40 +0000 (10:15 +0000)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 23 Feb 2012 10:15:40 +0000 (10:15 +0000)
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/common/schedule.c
xen/include/xen/sched-if.h

index 3505c8b302716b21a648e88880fb9c02105b2395..24f89467a17ef31bdbfb3b9af224c871bd835968 100644 (file)
@@ -50,7 +50,7 @@ boolean_param("sched_smt_power_savings", sched_smt_power_savings);
 /* Default scheduling rate limit: 1ms 
  * The behavior when sched_ratelimit_us is greater than sched_credit_tslice_ms is undefined
  * */
-int sched_ratelimit_us = 1000;
+int sched_ratelimit_us = SCHED_DEFAULT_RATELIMIT_US;
 integer_param("sched_ratelimit_us", sched_ratelimit_us);
 /* Various timer handlers. */
 static void s_timer_fn(void *unused);
index d6fa15a70249d87a0af8dffdf92b4a6d27514ab6..bd6186a9f1d46c4271c47487ff272ba8d72f0149 100644 (file)
@@ -18,6 +18,7 @@ extern cpumask_t cpupool_free_cpus;
 
 /* Scheduler generic parameters
  * */
+#define SCHED_DEFAULT_RATELIMIT_US 1000
 extern int sched_ratelimit_us;