aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-05-04 12:24:53 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2012-05-04 12:24:53 -0400
commit27549ac2327435e299b1a08de626c794a9005be2 (patch)
tree7274233919a34ffd41c68305cc56e89ff56938f9 /litmus
parent803e44774958312123b0bee0fcffd4e97c7c88aa (diff)
Fix a forgotten nr_colors in color_proc.c
Diffstat (limited to 'litmus')
-rw-r--r--litmus/color_proc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/litmus/color_proc.c b/litmus/color_proc.c
index 0ac533f96d3e..3ad010f21b02 100644
--- a/litmus/color_proc.c
+++ b/litmus/color_proc.c
@@ -84,12 +84,10 @@ int color_server_params(int cpu, unsigned long *wcet, unsigned long *period)
84 return 0; 84 return 0;
85} 85}
86 86
87extern unsigned long nr_colors; /* litmus/color.c */
88
89/* must be called AFTER nr_colors is set */ 87/* must be called AFTER nr_colors is set */
90static int __init init_sysctl_nr_colors(void) 88static int __init init_sysctl_nr_colors(void)
91{ 89{
92 int ret = 0, maxlen = ONE_COLOR_LEN * nr_colors; 90 int ret = 0, maxlen = ONE_COLOR_LEN * color_cache_info.nr_colors;
93 color_table[NR_PAGES_INDEX].data = kmalloc(maxlen, GFP_KERNEL); 91 color_table[NR_PAGES_INDEX].data = kmalloc(maxlen, GFP_KERNEL);
94 if (!color_table[NR_PAGES_INDEX].data) { 92 if (!color_table[NR_PAGES_INDEX].data) {
95 printk(KERN_WARNING "Could not allocate nr_pages buffer.\n"); 93 printk(KERN_WARNING "Could not allocate nr_pages buffer.\n");