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 7b20d459d644..b6458ee53852 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -6945,7 +6945,7 @@ int workqueue_online_cpu(unsigned int cpu) list_for_each_entry(wq, &workqueues, list) { struct workqueue_attrs *attrs = wq->unbound_attrs; - if (attrs) { + if (wq->flags & WQ_UNBOUND) { const struct wq_pod_type *pt = wqattrs_pod_type(attrs); int tcpu; @@ -6980,7 +6980,7 @@ int workqueue_offline_cpu(unsigned int cpu) list_for_each_entry(wq, &workqueues, list) { struct workqueue_attrs *attrs = wq->unbound_attrs; - if (attrs) { + if (wq->flags & WQ_UNBOUND) { const struct wq_pod_type *pt = wqattrs_pod_type(attrs); int tcpu; |
