aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_cedf.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2010-12-01 22:52:12 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2010-12-01 22:52:12 -0500
commite8ecd3beb68f401f13630c04326379b09a8cf475 (patch)
tree422ba13ddd1537e098b22195f575330ff499f3fc /litmus/sched_cedf.c
parent7c4bf1537a81a84954dc34caeaf3b874800f7c18 (diff)
Feature: Make default C-EDF clustering compile-time configurable.wip-default-clustering
Prior to this patch, C-EDF defaulted to clustering around the L2 cache. This is a poor choice for a system with Nahalem-EX processors, where L2 caches are private to each core and the L3 is the only shared cache. This patch makes the default C-EDF clustering configurable at compile-time. Kconfig makes L2 the default selection (in spirit with the prior C-EDF default).
Diffstat (limited to 'litmus/sched_cedf.c')
-rw-r--r--litmus/sched_cedf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c
index 8c9513d33f59..1469a1e537d3 100644
--- a/litmus/sched_cedf.c
+++ b/litmus/sched_cedf.c
@@ -50,7 +50,15 @@
50 * (default) we cluster all the CPUs that shares a L2 cache, while 50 * (default) we cluster all the CPUs that shares a L2 cache, while
51 * cluster_cache_index = 3 we cluster all CPs that shares a L3 cache 51 * cluster_cache_index = 3 we cluster all CPs that shares a L3 cache
52 */ 52 */
53#if defined(CONFIG_CEDF_DEFAULT_L1)
54int cluster_index = 1;
55#elif defined(CONFIG_CEDF_DEFAULT_L2)
53int cluster_index = 2; 56int cluster_index = 2;
57#elif defined(CONFIG_CEDF_DEFAULT_L3)
58int cluster_index = 3;
59#elif defined(CONFIG_CEDF_DEFAULT_ALL)
60int cluster_index = 0;
61#endif
54 62
55/* forward declaration... a funny thing with C ;) */ 63/* forward declaration... a funny thing with C ;) */
56struct clusterdomain; 64struct clusterdomain;