Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183261
b: refs/heads/master
c: 7fa6282
h: refs/heads/master
i:
  183259: 48af4f0
v: v3
  • Loading branch information
Kalle Valo authored and John W. Linville committed Dec 21, 2009
1 parent 1f5eab7 commit 7369bce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5a167942cb388cc5f1a6085cb3506d5bf47517d
refs/heads/master: 7fa6282a1775bd41508220e65ba0cb92235b67d4
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/wl12xx/wl1251_ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ void wl1251_ps_elp_sleep(struct wl1251 *wl)

int wl1251_ps_elp_wakeup(struct wl1251 *wl)
{
unsigned long timeout;
unsigned long timeout, start;
u32 elp_reg;

if (!wl->elp)
return 0;

wl1251_debug(DEBUG_PSM, "waking up chip from elp");

start = jiffies;
timeout = jiffies + msecs_to_jiffies(WL1251_WAKEUP_TIMEOUT);

wl1251_write32(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_WAKE_UP);
Expand All @@ -96,8 +97,7 @@ int wl1251_ps_elp_wakeup(struct wl1251 *wl)
}

wl1251_debug(DEBUG_PSM, "wakeup time: %u ms",
jiffies_to_msecs(jiffies) -
(jiffies_to_msecs(timeout) - WL1251_WAKEUP_TIMEOUT));
jiffies_to_msecs(jiffies - start));

wl->elp = false;

Expand Down

0 comments on commit 7369bce

Please sign in to comment.