netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: net: wireless: rsi: rsi_91x_core: Use time_after time comparison
@ 2017-05-08 22:34 Karim Eshapa
  2017-05-24 13:40 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Karim Eshapa @ 2017-05-08 22:34 UTC (permalink / raw)
  To: kvalo; +Cc: linux-wireless, netdev, linux-kernel, Karim Eshapa

Use time_after kernel macro for time comparison.

Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
---
 drivers/net/wireless/rsi/rsi_91x_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/rsi/rsi_91x_core.c b/drivers/net/wireless/rsi/rsi_91x_core.c
index f3d3995..68f04a7 100644
--- a/drivers/net/wireless/rsi/rsi_91x_core.c
+++ b/drivers/net/wireless/rsi/rsi_91x_core.c
@@ -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();
 	}
 }
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: rsi: rsi_91x_core: Use time_after time comparison
  2017-05-08 22:34 [PATCH] drivers: net: wireless: rsi: rsi_91x_core: Use time_after time comparison Karim Eshapa
@ 2017-05-24 13:40 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2017-05-24 13:40 UTC (permalink / raw)
  To: Karim Eshapa; +Cc: linux-wireless, netdev, linux-kernel, Karim Eshapa

Karim Eshapa <karim.eshapa@gmail.com> wrote:
> Use time_after kernel macro for time comparison.
> 
> Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>

Patch applied to wireless-drivers-next.git, thanks.

c07036f18d93 rsi: rsi_91x_core: Use time_after time comparison

-- 
https://patchwork.kernel.org/patch/9716843/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-24 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08 22:34 [PATCH] drivers: net: wireless: rsi: rsi_91x_core: Use time_after time comparison Karim Eshapa
2017-05-24 13:40 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).