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

Commit 32d3d41a authored by Komal Seelam's avatar Komal Seelam
Browse files

cnss: Fix the timeout value passed to _pm_wakeup_event API



_pm_wakeup_event API expects the timeout value in msec.

The timeout argument passed to cnss_pm_wake_lock_timeout API
is already in msec.

No need to convert the timeout value from jiffies to msec
when passing timeout value to _pm_wakeup_event.

Change-Id: I7f6691157970daa033b8f09c9d5959fef6617662
CRs-Fixed: 619610
Signed-off-by: default avatarSeelam Komal <kseelam@codeaurora.org>
parent f79896a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -590,7 +590,7 @@ EXPORT_SYMBOL(cnss_pm_wake_lock);

void cnss_pm_wake_lock_timeout(struct wakeup_source *ws, ulong msec)
{
	__pm_wakeup_event(ws, jiffies_to_msecs(msec));
	__pm_wakeup_event(ws, msec);
}
EXPORT_SYMBOL(cnss_pm_wake_lock_timeout);