diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-04-15 18:29:35 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-04-15 18:29:35 -0400 |
commit | c43679c57a5d89b703dd678d77f5f2186b9030cd (patch) | |
tree | 350d563b162a6a5c775dce25e18f6d97fa2d020d | |
parent | 7800dfe908ccf5e989ab3bfef7102c88ca81b2a7 (diff) |
Remove two compilation warnings
-rw-r--r-- | litmus/litmus.c | 2 | ||||
-rw-r--r-- | litmus/sched_cedf.c | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 524f0e9198a6..a62ec1455cef 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -563,7 +563,7 @@ static int proc_read_cluster_size(char *page, char **start, | |||
563 | len = snprintf(page, PAGE_SIZE, "L2\n"); | 563 | len = snprintf(page, PAGE_SIZE, "L2\n"); |
564 | else if (cluster_cache_index == 3) | 564 | else if (cluster_cache_index == 3) |
565 | len = snprintf(page, PAGE_SIZE, "L3\n"); | 565 | len = snprintf(page, PAGE_SIZE, "L3\n"); |
566 | else if (cluster_cache_index == 1) | 566 | else /* (cluster_cache_index == 1) */ |
567 | len = snprintf(page, PAGE_SIZE, "L1\n"); | 567 | len = snprintf(page, PAGE_SIZE, "L1\n"); |
568 | 568 | ||
569 | return len; | 569 | return len; |
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c index d79278a571f7..4c22e26241d9 100644 --- a/litmus/sched_cedf.c +++ b/litmus/sched_cedf.c | |||
@@ -760,17 +760,6 @@ static void print_cluster_topology(cpumask_var_t mask, int cpu) | |||
760 | printk(KERN_INFO "CPU = %d, shared cpu(s) = %s\n", cpu, buf); | 760 | printk(KERN_INFO "CPU = %d, shared cpu(s) = %s\n", cpu, buf); |
761 | 761 | ||
762 | } | 762 | } |
763 | |||
764 | static void cluster_check(void) | ||
765 | { | ||
766 | int i,j; | ||
767 | |||
768 | for (i = 0; i < num_clusters; i++) { | ||
769 | printk(KERN_INFO "\nCluster = %d\ncpus: ", i); | ||
770 | for (j = 0; j < cluster_size; j++) | ||
771 | printk(KERN_INFO "%d ", (cedf[i].cpus[j])->cpu); | ||
772 | } | ||
773 | } | ||
774 | #endif | 763 | #endif |
775 | 764 | ||
776 | static void cleanup_cedf(void) | 765 | static void cleanup_cedf(void) |