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 [ATM] drivers/atm/ambassador.c: stop inlining largish static functions 2008-04-03 14:59:55 -07:00
ambassador.h
atmsar11.data
atmsar11.regions
atmsar11.start
atmtcp.c
eni.c
eni.h
firestream.c [ATM] firestream: Fix uninitialized var warning. 2008-03-28 16:19:26 -07:00
firestream.h
fore200e_firmware_copyright
fore200e_mkfirm.c
fore200e.c fore2000 - fix misannotations 2008-03-17 07:56:31 -04:00
fore200e.h fore2000 - fix misannotations 2008-03-17 07:56:31 -04:00
he.c [ATM]: Make atm/he.c:read_prom_byte() static 2008-03-31 19:34:44 -07:00
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 [ATM] atm/idt77252.c: Make 2 functions static 2008-03-31 19:35:52 -07:00
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