rtw88: not to enter or leave PS under IRQ
Remove PS related *_irqsafe functions to avoid entering/leaving PS under interrupt context. Instead, make PS decision in watch_dog. This could simplify the logic and make the code look clean. But it could have a little side-effect that if the driver is having heavy traffic before the every-2-second watch_dog detect the traffic and decide to leave PS, the thoughput will be lower. Once traffic is detected by watch_dog and left PS state, the throughput will resume to the peak the hardware ought to have again. Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
6f0b0d28fd
commit
61d7309562
@@ -25,8 +25,6 @@ void rtw_rx_stats(struct rtw_dev *rtwdev, struct ieee80211_vif *vif,
|
||||
rtwvif = (struct rtw_vif *)vif->drv_priv;
|
||||
rtwvif->stats.rx_unicast += skb->len;
|
||||
rtwvif->stats.rx_cnt++;
|
||||
if (rtwvif->stats.rx_cnt > RTW_LPS_THRESHOLD)
|
||||
rtw_leave_lps_irqsafe(rtwdev, rtwvif);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user