aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/litmus.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r--litmus/litmus.c6
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