diff mbox series

回复: [PATCH] PM: remove PF_WQ_WORKER mask

Message ID BYAPR11MB26324750851DA9821B44CF66FFBB9@BYAPR11MB2632.namprd11.prod.outlook.com
State New
Headers show
Series 回复: [PATCH] PM: remove PF_WQ_WORKER mask | expand

Commit Message

Zhang, Qiang Jan. 27, 2021, 3:18 a.m. UTC
________________________________________
发件人: Zhang, Qiang <qiang.zhang@windriver.com>
发送时间: 2021年1月25日 12:00
收件人: rafael.j.wysocki@intel.com
抄送: linux-pm@vger.kernel.org; linux-kernel@vger.kernel.org
主题: [PATCH] PM: remove PF_WQ_WORKER mask

From: Zqiang <qiang.zhang@windriver.com>


Due to kworker also is kernel thread, it's already included
PF_KTHREAD mask, so remove PF_WQ_WORKER mask.

Signed-off-by: Zqiang <qiang.zhang@windriver.com>

---
 kernel/power/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.17.1
diff mbox series

Patch

diff --git a/kernel/power/process.c b/kernel/power/process.c
index 45b054b7b5ec..50cc63534486 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -235,7 +235,7 @@  void thaw_kernel_threads(void)

        read_lock(&tasklist_lock);
        for_each_process_thread(g, p) {
-               if (p->flags & (PF_KTHREAD | PF_WQ_WORKER))
+               if (p->flags & PF_KTHREAD)
                        __thaw_task(p);
        }
        read_unlock(&tasklist_lock);