diff options
Diffstat (limited to 'kernel/workqueue.c')
| -rw-r--r-- | kernel/workqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index d7d3fa3072e5..1935302cc645 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
| @@ -282,8 +282,8 @@ static int worker_thread(void *__cwq) | |||
| 282 | struct cpu_workqueue_struct *cwq = __cwq; | 282 | struct cpu_workqueue_struct *cwq = __cwq; |
| 283 | DEFINE_WAIT(wait); | 283 | DEFINE_WAIT(wait); |
| 284 | 284 | ||
| 285 | if (!cwq->wq->freezeable) | 285 | if (cwq->wq->freezeable) |
| 286 | current->flags |= PF_NOFREEZE; | 286 | set_freezable(); |
| 287 | 287 | ||
| 288 | set_user_nice(current, -5); | 288 | set_user_nice(current, -5); |
| 289 | 289 | ||
