]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/sched_stats.h
Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-omap-h63xx.git] / kernel / sched_stats.h
index b8c156979cf2ad600b0f9b59f9a935cec86aab85..2df9d297d292d23fa46db931cdbd0cf9a41af2c0 100644 (file)
@@ -9,7 +9,7 @@
 static int show_schedstat(struct seq_file *seq, void *v)
 {
        int cpu;
-       int mask_len = NR_CPUS/32 * 9;
+       int mask_len = DIV_ROUND_UP(NR_CPUS, 32) * 9;
        char *mask_str = kmalloc(mask_len, GFP_KERNEL);
 
        if (mask_str == NULL)