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:
Yan-Hsuan Chuang
2019-10-02 10:31:19 +08:00
committed by Kalle Valo
parent 6f0b0d28fd
commit 61d7309562
6 changed files with 2 additions and 53 deletions

View File

@@ -1361,7 +1361,6 @@ struct rtw_dev {
/* lps power state & handler work */
struct rtw_lps_conf lps_conf;
struct delayed_work lps_work;
struct dentry *debugfs;