Skip to content

Commit

Permalink
wl1271: Prevent system from sleeping for 1 sec after new packet arrival
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
  • Loading branch information
Dmitry Shmidt committed Feb 24, 2010
1 parent 7fc3d51 commit dc1e3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wilink_6_1/platforms/os/linux/src/osapi.c
Expand Up @@ -590,7 +590,7 @@ void os_InterruptServiced (TI_HANDLE OsContext)
/*-----------------------------------------------------------------------------
Routine Name: os_wake_lock_timeout
Routine Description: Called to prevent system from suspend for some time
Routine Description: Called to prevent system from suspend for 1 sec
Arguments: OsContext - handle to OS context
Expand All @@ -608,7 +608,7 @@ int os_wake_lock_timeout (TI_HANDLE OsContext)
if (drv->wl_packet) {
drv->wl_packet = 0;
#ifdef CONFIG_HAS_WAKELOCK
wake_lock_timeout(&drv->wl_rxwake, (HZ >> 1));
wake_lock_timeout(&drv->wl_rxwake, HZ);
#endif
}
spin_unlock_irqrestore(&drv->lock, flags);
Expand Down

0 comments on commit dc1e3df

Please sign in to comment.