dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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
Kconfig
Makefile
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.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
fore200e_firmware_copyright
fore200e_mkfirm.c
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 [ATM] atm/idt77105.c: Fix section mismatch. 2008-01-20 20:31:43 -08:00
idt77105.h
idt77252.c [ATM] atm/idt77252.c: Make 2 functions static 2008-03-31 19:35:52 -07:00
idt77252.h
idt77252_tables.h
iphase.c drivers/atm: use time_before, time_before_eq, etc 2008-04-19 18:14:50 -07:00
iphase.h
lanai.c
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.data
pca200e_ecd.data
sba200e_ecd.data
suni.c [ATM] atm/suni.c: Fix section mismatch. 2008-01-20 20:31:44 -08:00
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c
zatm.h
zeprom.h