mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
Merge tag 'v4.9.251' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.251 stable release Change-Id: I46d3e088d6b63324528986a8ff1d8e026fea5362
This commit is contained in:
@@ -3467,17 +3467,24 @@ static void pwq_adjust_max_active(struct pool_workqueue *pwq)
|
||||
* is updated and visible.
|
||||
*/
|
||||
if (!freezable || !workqueue_freezing) {
|
||||
bool kick = false;
|
||||
|
||||
pwq->max_active = wq->saved_max_active;
|
||||
|
||||
while (!list_empty(&pwq->delayed_works) &&
|
||||
pwq->nr_active < pwq->max_active)
|
||||
pwq->nr_active < pwq->max_active) {
|
||||
pwq_activate_first_delayed(pwq);
|
||||
kick = true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Need to kick a worker after thawed or an unbound wq's
|
||||
* max_active is bumped. It's a slow path. Do it always.
|
||||
* max_active is bumped. In realtime scenarios, always kicking a
|
||||
* worker will cause interference on the isolated cpu cores, so
|
||||
* let's kick iff work items were activated.
|
||||
*/
|
||||
wake_up_worker(pwq->pool);
|
||||
if (kick)
|
||||
wake_up_worker(pwq->pool);
|
||||
} else {
|
||||
pwq->max_active = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user