From: Christoph Lameter Subject: slub: Remove per cpu info from per cpu statistics for !SMP Do not display the per cpu counts if this is not a SMP system. Signed-off-by: Christoph Lameter --- mm/slub.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2008-03-26 18:15:46.346668803 -0700 +++ linux-2.6/mm/slub.c 2008-03-26 18:15:59.178225685 -0700 @@ -4305,10 +4305,12 @@ static int show_stat(struct kmem_cache * len = sprintf(buf, "%lu", sum); +#ifdef CONFIG_SMP for_each_online_cpu(cpu) { if (data[cpu] && len < PAGE_SIZE - 20) len += sprintf(buf + len, " c%d=%u", cpu, data[cpu]); } +#endif kfree(data); return len + sprintf(buf + len, "\n"); }