Skip to content

Commit

Permalink
qmi_rmnet: Make powersave workqueue unbound and freezable
Browse files Browse the repository at this point in the history
* After commit "Revert "dfc: Use alarm timer to trigger powersave work",
this workqueue is now is use for qmi_rmnet_check_stats. Make it unbound
and freezable to save power.

Signed-off-by: LibXZR <xzr467706992@163.com>
  • Loading branch information
libxzr committed Feb 25, 2021
1 parent d4d9208 commit 05fd55b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/soc/qcom/qmi_rmnet.c
Expand Up @@ -1234,8 +1234,7 @@ void qmi_rmnet_work_init(void *port)
if (rmnet_ps_wq)
return;

rmnet_ps_wq = alloc_workqueue("rmnet_powersave_work",
WQ_CPU_INTENSIVE, 1);
rmnet_ps_wq = create_freezable_workqueue("rmnet_powersave_work");

if (!rmnet_ps_wq)
return;
Expand Down

0 comments on commit 05fd55b

Please sign in to comment.