]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
tracing: Don't assume possible cpu list have continuous numbers
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Tue, 10 Mar 2009 01:49:53 +0000 (10:49 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Mar 2009 09:20:30 +0000 (10:20 +0100)
commitbbcd3063597a3824357cd83c501c2a2aa21ef37b
tree4da63cbe8e3740fd9645fbbf6aeeed5d21ac6437
parent8293dd6f86e759068ce918aa10ca9c5d6d711cd0
tracing: Don't assume possible cpu list have continuous numbers

"for (++cpu ; cpu < num_possible_cpus(); cpu++)" statement assumes
possible cpus have continuous number - but that's a wrong assumption.

Insted, cpumask_next() should be used.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Steven Rostedt <srostedt@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20090310104437.A480.A69D9226@jp.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_workqueue.c