The patch titled Subject: sched-proc-sched_stat-fails-on-very-very-large-machines-v2 has been added to the -mm tree. Its filename is sched-proc-sched_stat-fails-on-very-very-large-machines-v2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Nathan Zimmer <nzimmer@xxxxxxx> Subject: sched-proc-sched_stat-fails-on-very-very-large-machines-v2 v2: Took Andrew's suggestion to add comments, fix memleak Signed-off-by: Nathan Zimmer <nzimmer@xxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Dave Jones <davej@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sched/stats.c | 7 +++++++ 1 file changed, 7 insertions(+) diff -puN kernel/sched/stats.c~sched-proc-sched_stat-fails-on-very-very-large-machines-v2 kernel/sched/stats.c --- a/kernel/sched/stats.c~sched-proc-sched_stat-fails-on-very-very-large-machines-v2 +++ a/kernel/sched/stats.c @@ -81,6 +81,13 @@ static int show_schedstat(struct seq_fil return 0; } +/* + * This itererator needs some explination. + * It returns 1 for the header position. + * This means 2 is cpu 0. + * In a hotplugged system some cpus, including cpu 0, may be missing so we have + * to use cpumask_* to iterate over the cpus. + */ static void *schedstat_start(struct seq_file *file, loff_t *offset) { unsigned long n = *offset; _ Patches currently in -mm which might be from nzimmer@xxxxxxx are timer_list-split-timer_list_show_tickdevices.patch timer_list-convert-timer-list-to-be-a-proper-seq_file.patch timer_list-convert-timer-list-to-be-a-proper-seq_file-fix.patch sched-proc-sched_stat-fails-on-very-very-large-machines.patch sched-proc-sched_stat-fails-on-very-very-large-machines-fix.patch sched-proc-sched_stat-fails-on-very-very-large-machines-v2.patch sched-proc-sched_debug-fails-on-very-very-large-machines.patch sched-proc-sched_debug-fails-on-very-very-large-machines-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html