rsi: rsi_91x_core: Use time_after time comparison

Use time_after kernel macro for time comparison.

Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Karim Eshapa 2017-05-09 00:34:10 +02:00 committed by Kalle Valo
parent 5578b1ffdc
commit c07036f18d
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ void rsi_core_qos_processor(struct rsi_common *common)
tstamp_2 = jiffies;
mutex_unlock(&common->tx_rxlock);
if (tstamp_2 > tstamp_1 + (300 * HZ / 1000))
if (time_after(tstamp_2, tstamp_1 + (300 * HZ) / 1000))
schedule();
}
}