[PATCH V2 10/15] workqueue: avoid unneeded calls to get_work_cwq()

2013-02-18 Thread Lai Jiangshan
Use already-known "cwq" instead of get_work_cwq(work) in try_to_grab_pending() and cwq_activate_first_delayed(). It avoid unneeded calls to get_work_cwq() which becomes not so light-way in later patches. Signed-off-by: Lai Jiangshan --- kernel/workqueue.c | 11 +-- 1 files changed, 5

[PATCH V2 10/15] workqueue: avoid unneeded calls to get_work_cwq()

2013-02-18 Thread Lai Jiangshan
Use already-known cwq instead of get_work_cwq(work) in try_to_grab_pending() and cwq_activate_first_delayed(). It avoid unneeded calls to get_work_cwq() which becomes not so light-way in later patches. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- kernel/workqueue.c | 11 +--