From: Andrew Morton !SMP: mm/vmstat.c: In function 'zoneinfo_show': mm/vmstat.c:582: error: 'struct per_cpu_pageset' has no member named 'stat_threshold' mm/vmstat.c: In function 'vmstat_cpuup_callback': mm/vmstat.c:683: warning: implicit declaration of function 'refresh_zone_stat_thresholds' Cc: Christoph Lameter Signed-off-by: Andrew Morton --- mm/vmstat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff -puN include/linux/mmzone.h~zvc-scale-thresholds-depending-on-the-size-of-the-system-fix include/linux/mmzone.h diff -puN mm/vmstat.c~zvc-scale-thresholds-depending-on-the-size-of-the-system-fix mm/vmstat.c --- a/mm/vmstat.c~zvc-scale-thresholds-depending-on-the-size-of-the-system-fix +++ a/mm/vmstat.c @@ -578,8 +578,10 @@ static int zoneinfo_show(struct seq_file pageset->pcp[j].high, pageset->pcp[j].batch); } +#ifdef CONFIG_SMP seq_printf(m, "\n vm stats threshold: %d\n", pageset->stat_threshold); +#endif } seq_printf(m, "\n all_unreclaimable: %u" @@ -668,6 +670,7 @@ struct seq_operations vmstat_op = { #endif /* CONFIG_PROC_FS */ +#ifdef CONFIG_SMP /* * Use the cpu notifier to insure that the thresholds are recalculated * when necessary. @@ -698,4 +701,4 @@ int __init setup_vmstat(void) return 0; } module_init(setup_vmstat) - +#endif _