Commit a81f80f3 authored by Tejun Heo's avatar Tejun Heo

power, workqueue: remove keventd_up() usage

Now that workqueue can handle work item queueing/cancelling from very
early during boot, there is no need to gate cancel_delayed_work_sync()
while !keventd_up().  Remove it.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Qiao Zhou <qiaozhou@asrmicro.com>
parent 1bb08024
...@@ -482,16 +482,7 @@ void pm_qos_update_request(struct pm_qos_request *req, ...@@ -482,16 +482,7 @@ void pm_qos_update_request(struct pm_qos_request *req,
return; return;
} }
/* cancel_delayed_work_sync(&req->work);
* This function may be called very early during boot, for example,
* from of_clk_init(), where irq needs to stay disabled.
* cancel_delayed_work_sync() assumes that irq is enabled on
* invocation and re-enables it on return. Avoid calling it until
* workqueue is initialized.
*/
if (keventd_up())
cancel_delayed_work_sync(&req->work);
__pm_qos_update_request(req, new_value); __pm_qos_update_request(req, new_value);
} }
EXPORT_SYMBOL_GPL(pm_qos_update_request); EXPORT_SYMBOL_GPL(pm_qos_update_request);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment