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)
commit3690b5e6fd9daa030039ae9bda69044228bd476d
tree0c728e624889c4fb32e028786c5db91bbdb5def1
parentce5e5540c0e839781e7cd134517d5d2e9e819636
trace_workqueue: use percpu data for workqueue stat

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>
kernel/trace/trace_workqueue.c