kernel-ark/drivers
Julia Lawall b132fba18b drivers/net/appletalk: 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:15:41 -07:00
..
acorn/char
acpi Add down_timeout and change ACPI to use it 2008-04-17 10:42:46 -04:00
amba
ata Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2008-04-18 11:25:31 -07:00
atm drivers/atm: use time_before, time_before_eq, etc 2008-04-19 18:14:50 -07:00
auxdisplay
base
block Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-04-17 23:56:30 -07:00
bluetooth hci_usb: do not initialize static variables to 0 2008-04-19 18:13:40 -07:00
cdrom
char Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-kgdb 2008-04-18 08:37:01 -07:00
clocksource
connector
cpufreq
cpuidle
crypto [S390] zcrypt: add support for large random numbers 2008-04-17 07:47:02 +02:00
dca
dio
dma dmaengine: ack to flags: make use of the unused bits in the 'ack' field 2008-04-17 13:25:54 -07:00
edac
eisa
firewire firewire: cleanups 2008-04-18 17:55:37 +02:00
firmware
gpio
hid
hwmon
i2c
ide ide: remove ide_init_default_irq() macro 2008-04-18 00:46:35 +02:00
ieee1394 ieee1394: limit early node speed to host interface speed 2008-04-18 17:55:31 +02:00
infiniband IB/iser: Don't change itt endianness 2008-04-16 21:09:35 -07:00
input
isdn
leds
lguest
macintosh ide: rework PowerMac media-bay support (take 2) 2008-04-18 00:46:23 +02:00
mca
md
media
memstick
message
mfd
misc kgdb: allow static kgdbts boot configuration 2008-04-17 20:05:43 +02:00
mmc
mtd
net drivers/net/appletalk: use time_before, time_before_eq, etc 2008-04-19 18:15:41 -07:00
nubus
of
oprofile
parisc
parport
pci
pcmcia
pnp
power
ps3
rapidio
rtc
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.26 2008-04-18 18:02:35 -07:00
sbus
scsi Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2008-04-18 11:25:31 -07:00
serial kgdb: Kconfig fix 2008-04-17 20:05:42 +02:00
sh
sn
spi
ssb Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-04-17 23:56:30 -07:00
tc
telephony
thermal
uio
usb
video
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile