trace_workqueue: use percpu data for workqueue stat
authorLai Jiangshan <laijs@cn.fujitsu.com>
Fri, 16 Jan 2009 08:32:25 +0000 (16:32 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 20 Jan 2009 12:06:59 +0000 (13:06 +0100)
Impact: use percpu data instead of a global structure

Use:

   static DEFINE_PER_CPU(struct workqueue_global_stats, all_workqueue_stat);

instead of allocating a global structure.

percpu data also works well on NUMA.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found