From: Lai Jiangshan Date: Wed, 19 Sep 2012 17:40:48 +0000 (-0700) Subject: workqueue: use cwq_set_max_active() helper for workqueue_set_max_active() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~52^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70369b117a8fc5ac18a635ced23ee49f8e722e7b;p=pandora-kernel.git workqueue: use cwq_set_max_active() helper for workqueue_set_max_active() workqueue_set_max_active() may increase ->max_active without activating delayed works and may make the activation order differ from the queueing order. Both aren't strictly bugs but the resulting behavior could be a bit odd. To make things more consistent, use cwq_set_max_active() helper which immediately makes use of the newly increased max_mactive if there are delayed work items and also keeps the activation order. tj: Slight update to description. Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed