From: Nathan Zimmer Date: Wed, 20 Feb 2013 02:13:51 +0000 (+1100) Subject: sched-proc-sched_debug-fails-on-very-very-large-machines-v2 X-Git-Tag: next-20130220~1^2~617 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=103dcbdd881086d40d095926094f31808a19befb;p=karo-tx-linux.git sched-proc-sched_debug-fails-on-very-very-large-machines-v2 v2: Took suggetion for adding comments Signed-off-by: Nathan Zimmer Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Dave Jones Signed-off-by: Andrew Morton --- diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 25be2dd939a5..1ed4c2dca389 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -406,6 +406,13 @@ void sysrq_sched_debug_show(void) } +/* + * 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 *sched_debug_start(struct seq_file *file, loff_t *offset) { unsigned long n = *offset;