diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-28 10:51:01 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-29 17:43:59 -0400 |
commit | 7c1ff4c544dd650cceff3cd69a04bcba60856678 (patch) | |
tree | 76d2dee2a96363f283b9440d46d1ed8be4fa3aff /litmus/sched_plugin.c | |
parent | 425a6b5043bcc2142804107c853f978ac2fe3040 (diff) |
Add C-EDF Plugin2010.1
Improved C-EDF plugin. C-EDF now supports different cluster sizes (based
on L2 and L3 cache sharing) and supports dynamic changes of cluster size
(this requires reloading the plugin).
Diffstat (limited to 'litmus/sched_plugin.c')
-rw-r--r-- | litmus/sched_plugin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/litmus/sched_plugin.c b/litmus/sched_plugin.c index bc7c0e93fb18..3767b30e610a 100644 --- a/litmus/sched_plugin.c +++ b/litmus/sched_plugin.c | |||
@@ -171,6 +171,14 @@ struct sched_plugin linux_sched_plugin = { | |||
171 | }; | 171 | }; |
172 | 172 | ||
173 | /* | 173 | /* |
174 | * The cluster size is needed in C-EDF: it makes sense only to cluster | ||
175 | * around L2 or L3, so if cluster_cache_index = 2 (default) we cluster | ||
176 | * all the CPUs that shares a L2 cache, while cluster_cache_index = 3 | ||
177 | * we cluster all CPs that shares a L3 cache | ||
178 | */ | ||
179 | int cluster_cache_index = 2; | ||
180 | |||
181 | /* | ||
174 | * The reference to current plugin that is used to schedule tasks within | 182 | * The reference to current plugin that is used to schedule tasks within |
175 | * the system. It stores references to actual function implementations | 183 | * the system. It stores references to actual function implementations |
176 | * Should be initialized by calling "init_***_plugin()" | 184 | * Should be initialized by calling "init_***_plugin()" |