linux_dsm_epyc7002/drivers/media
Julia Lawall 168c626cb8 V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc
The functions time_before, time_before_eq, time_after, and time_after_eq
are more robust for comparing jiffies against other values.

A simplified version of the semantic patch making this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@ change_compare_np @
expression E;
@@

(
- jiffies <= E
+ time_before_eq(jiffies,E)
|
- jiffies >= E
+ time_after_eq(jiffies,E)
|
- jiffies < E
+ time_before(jiffies,E)
|
- jiffies > E
+ time_after(jiffies,E)
)

@ include depends on change_compare_np @
@@

@ no_include depends on !include && change_compare_np @
@@

  #include <linux/...>
+ #include <linux/jiffies.h>
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-24 14:09:40 -03:00
..
common V4L/DVB (7590): ir-common: Adds 3 missing IR keys for FlyVIdeo2000 2008-04-24 14:09:40 -03:00
dvb V4L/DVB (7569): Added support for SkyStar2 rev2.7 and ITD1000 DVB-S tuner 2008-04-24 14:09:40 -03:00
radio V4L/DVB (7582): proc: switch /proc/driver/radio-typhoon to seq_file interface 2008-04-24 14:09:40 -03:00
video V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc 2008-04-24 14:09:40 -03:00
Kconfig V4L/DVB (7584): Fix build that occurs when CONFIG_VIDEO_PMS=y and VIDEO_V4L2_COMMON=m 2008-04-24 14:09:40 -03:00
Makefile V4L/DVB (7499): v4l/dvb Kconfig: Fix bugzilla #10067 2008-04-06 17:13:20 -03:00