Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] dvb: dvb_frontend: use time_after()

Use time_after() macro.

Signed-off-by: Marcelo Feitoza Parisi <marcelo@feitoza.com.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Johannes Stezenbach and committed by
Linus Torvalds
cc89c229 f756ead1

+3 -1
+3 -1
drivers/media/dvb/dvb-core/dvb_frontend.c
··· 35 35 #include <linux/moduleparam.h> 36 36 #include <linux/list.h> 37 37 #include <linux/suspend.h> 38 + #include <linux/jiffies.h> 38 39 #include <asm/processor.h> 39 40 #include <asm/semaphore.h> 40 41 ··· 328 327 return 1; 329 328 330 329 if (fepriv->dvbdev->writers == 1) 331 - if (jiffies - fepriv->release_jiffies > dvb_shutdown_timeout * HZ) 330 + if (time_after(jiffies, fepriv->release_jiffies + 331 + dvb_shutdown_timeout * HZ)) 332 332 return 1; 333 333 334 334 return 0;