workqueue: introduce wq_per_cpu() helper
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 9 May 2007 09:34:17 +0000 (02:34 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:52 +0000 (12:30 -0700)
commita848e3b67c07ed79374bd0f9b82f9ce45a419643
tree72f4385e12310bf8e1b959d4d90d32f05c10cd61
parent63bc0362521cbaae3ed17b8de7b094f9492453f0
workqueue: introduce wq_per_cpu() helper

Cleanup.  A number of per_cpu_ptr(wq->cpu_wq, cpu) users have to check that
cpu is valid for this wq.  Make a simple helper.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/workqueue.c