diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-20 16:14:00 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 11:28:20 -0400 |
commit | de2d5dfa2dce8ec40555b3bb6dfe21627e472c52 (patch) | |
tree | 9dd7909e70b4f3c669ce3c58be75396cad0ed820 /litmus/litmus.c | |
parent | 6f89d4f31485546674187cf3b4d472f230b263d0 (diff) |
Add support for one single cluster (all cpus) on C-EDF
- With the "ALL" cluster size option the behavior of C-EDF is
equivalent to G-EDF (one single cluster)
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r-- | litmus/litmus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 86ad5b375934..b71fc819eb51 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -582,8 +582,10 @@ static int proc_read_cluster_size(char *page, char **start, | |||
582 | len = snprintf(page, PAGE_SIZE, "L2\n"); | 582 | len = snprintf(page, PAGE_SIZE, "L2\n"); |
583 | else if (cluster_cache_index == 3) | 583 | else if (cluster_cache_index == 3) |
584 | len = snprintf(page, PAGE_SIZE, "L3\n"); | 584 | len = snprintf(page, PAGE_SIZE, "L3\n"); |
585 | else /* (cluster_cache_index == 1) */ | 585 | else if (cluster_cache_index == 1) |
586 | len = snprintf(page, PAGE_SIZE, "L1\n"); | 586 | len = snprintf(page, PAGE_SIZE, "L1\n"); |
587 | else | ||
588 | len = snprintf(page, PAGE_SIZE, "ALL\n"); | ||
587 | 589 | ||
588 | return len; | 590 | return len; |
589 | } | 591 | } |
@@ -617,6 +619,8 @@ static int proc_write_cluster_size(struct file *file, | |||
617 | cluster_cache_index = 3; | 619 | cluster_cache_index = 3; |
618 | else if (!strcmp(cache_name, "L1")) | 620 | else if (!strcmp(cache_name, "L1")) |
619 | cluster_cache_index = 1; | 621 | cluster_cache_index = 1; |
622 | else if (!strcmp(cache_name, "ALL")) | ||
623 | cluster_cache_index = num_online_cpus(); | ||
620 | else | 624 | else |
621 | printk(KERN_INFO "Cluster '%s' is unknown.\n", cache_name); | 625 | printk(KERN_INFO "Cluster '%s' is unknown.\n", cache_name); |
622 | 626 | ||