Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 241469a6 authored by William Clark's avatar William Clark
Browse files

crypto: msm: Remove bw_reaper_timer while in suspend mode



Remove bw_reaper_timer timer while in suspend mode. Otherwise, it
may cause power regression than normal.

Change-Id: I5cab2b75baf96e08c7f7a179fdd15509bd919a69
Acked-by: default avatarChemin Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: default avatarWilliam Clark <wclark@codeaurora.org>
parent a2b0f946
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4871,6 +4871,8 @@ static int _qcrypto_suspend(struct platform_device *pdev, pm_message_t state)
	if (ret)
		return ret;
	else {
		cancel_work_sync(&pengine->bw_allocate_ws);
		del_timer_sync(&pengine->bw_reaper_timer);
		if (qce_pm_table.suspend)
			qce_pm_table.suspend(pengine->qce);
		return 0;
@@ -4901,6 +4903,9 @@ static int _qcrypto_resume(struct platform_device *pdev)
		if (qce_pm_table.resume)
			qce_pm_table.resume(pengine->qce);

		init_timer(&(pengine->bw_reaper_timer));
		qcrypto_bw_set_timeout(pengine);

		qcrypto_ce_set_bus(pengine, true);

		spin_lock_irqsave(&cp->lock, flags);