Skip to content

Commit

Permalink
mach-msm: smd_rpcrouter: add timeout to rpc_read wake lock
Browse files Browse the repository at this point in the history
It happends that wake_lock is not released so add a timeout
to avoid sleep issue.
  • Loading branch information
bukington committed Jun 20, 2011
1 parent 812dc8c commit 28503fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/smd_rpcrouter.c
Expand Up @@ -690,7 +690,7 @@ static void do_read_data(struct work_struct *work)
packet_complete:
spin_lock_irqsave(&ept->read_q_lock, flags);
if (ept->flags & MSM_RPC_ENABLE_RECEIVE) {
wake_lock(&ept->read_q_wake_lock);
wake_lock_timeout(&ept->read_q_wake_lock, HZ / 2);
list_add_tail(&pkt->list, &ept->read_q);
wake_up(&ept->wait_q);
} else {
Expand Down

0 comments on commit 28503fc

Please sign in to comment.