diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-26 20:42:49 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-01 17:00:26 -0500 |
commit | 4ce37704ec0bedb28b5708d32964fca471e793d0 (patch) | |
tree | 4e622b0d2d6793e944455ba108ae6dd5bf05ee80 /include/litmus | |
parent | 963fd846e36b48d5338ef2a134d3ee8d208abc07 (diff) |
Litmus core: extract userspace interface from C-EDF
Make the cluster size configuration in C-EDF generic so that it can be
used by other clustered schedulers.
Diffstat (limited to 'include/litmus')
-rw-r--r-- | include/litmus/clustered.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/litmus/clustered.h b/include/litmus/clustered.h new file mode 100644 index 000000000000..cad12467b4ee --- /dev/null +++ b/include/litmus/clustered.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef CLUSTERED_H | ||
2 | #define CLUSTERED_H | ||
3 | |||
4 | /* Which cache level should be used to group CPUs into clusters? | ||
5 | * GLOBAL_CLUSTER means that all CPUs form a single cluster (just like under | ||
6 | * global scheduling). | ||
7 | */ | ||
8 | enum cache_level { | ||
9 | GLOBAL_CLUSTER = 0, | ||
10 | L1_CLUSTER = 1, | ||
11 | L2_CLUSTER = 2, | ||
12 | L3_CLUSTER = 3 | ||
13 | }; | ||
14 | |||
15 | int parse_cache_level(const char *str, enum cache_level *level); | ||
16 | const char* cache_level_name(enum cache_level level); | ||
17 | |||
18 | /* expose a cache level in a /proc dir */ | ||
19 | struct proc_dir_entry* create_cluster_file(struct proc_dir_entry* parent, | ||
20 | enum cache_level* level); | ||
21 | |||
22 | #endif | ||