kernel-ark/drivers/atm
Julia Lawall 420635f517 drivers/atm: 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 @
@@

#include <linux/jiffies.h>

@ 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: David S. Miller <davem@davemloft.net>
2008-04-19 18:14:50 -07:00
..
.gitignore
adummy.c
ambassador.c
ambassador.h
atmsar11.data
atmsar11.regions
atmsar11.start
atmtcp.c
eni.c
eni.h
firestream.c
firestream.h
fore200e_firmware_copyright
fore200e_mkfirm.c
fore200e.c
fore200e.h
he.c
he.h
horizon.c [ATM] drivers/atm/horizon.c: stop inlining largish static functions 2008-04-13 21:54:34 -07:00
horizon.h
idt77105.c
idt77105.h
idt77252_tables.h
idt77252.c
idt77252.h
iphase.c drivers/atm: use time_before, time_before_eq, etc 2008-04-19 18:14:50 -07:00
iphase.h
Kconfig
lanai.c
Makefile
midway.h
nicstar.c atm nicstar: Removal of debug code containing deprecated calls to cli()/sti() 2008-04-19 18:10:46 -07:00
nicstar.h atm nicstar: Removal of debug code containing deprecated calls to cli()/sti() 2008-04-19 18:10:46 -07:00
nicstarmac.c
nicstarmac.copyright
pca200e_ecd.data
pca200e.data
sba200e_ecd.data
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c
zatm.h
zeprom.h