aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2012-02-23 10:15:40 +0000
committerGeorge Dunlap <george.dunlap@eu.citrix.com>2012-02-23 10:15:40 +0000
commit558ab895129b568e4ff77e5974d5ffadf708e618 (patch)
treef3514230b7afcaa15caba6b2d83a892dca74d8c7
parent07f06f76ec5aa7b452603e743f236662e3eb1240 (diff)
downloadxen-558ab895129b568e4ff77e5974d5ffadf708e618.tar.gz
xen-558ab895129b568e4ff77e5974d5ffadf708e618.tar.bz2
xen-558ab895129b568e4ff77e5974d5ffadf708e618.zip
scheduler: Add a #define for the default ratelimit
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Keir Fraser <keir@xen.org>
-rw-r--r--xen/common/schedule.c2
-rw-r--r--xen/include/xen/sched-if.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/xen/common/schedule.c b/xen/common/schedule.c
index 3505c8b302..24f89467a1 100644
--- a/xen/common/schedule.c
+++ b/xen/common/schedule.c
@@ -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);
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index d6fa15a702..bd6186a9f1 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -18,6 +18,7 @@ extern cpumask_t cpupool_free_cpus;
/* Scheduler generic parameters
* */
+#define SCHED_DEFAULT_RATELIMIT_US 1000
extern int sched_ratelimit_us;