wil6210: add statistics for suspend time
Add statistics for total, min and max suspend time, that calculates the time the 11ad device was in suspend. Those statistics will help to estimate the power impact of d3hot feature. Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
@@ -578,6 +578,8 @@ int wil_priv_init(struct wil6210_priv *wil)
|
||||
|
||||
wil->wakeup_trigger = WMI_WAKEUP_TRIGGER_UCAST |
|
||||
WMI_WAKEUP_TRIGGER_BCAST;
|
||||
memset(&wil->suspend_stats, 0, sizeof(wil->suspend_stats));
|
||||
wil->suspend_stats.min_suspend_time = ULONG_MAX;
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user