firewire: core: fix card->reset_jiffies overflow
authorClemens Ladisch <clemens@ladisch.de>
Sat, 22 Jan 2011 14:05:03 +0000 (15:05 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 23 Jan 2011 11:31:01 +0000 (12:31 +0100)
commite71084af58cf15e6043338500eeaf6281d0a62af
treed757d4891a4f93f7a07c1f12448d3be3be748fa1
parentdbc9880fa731fe2482a706bbabb4165269233063
firewire: core: fix card->reset_jiffies overflow

On a 32-bit machine with, e.g., HZ=1000, jiffies will overflow after
about 50 days, so if there are between 25 and 50 days between bus
resets, the card->reset_jiffies comparisons can get wrong results.

To fix this, ensure that this timestamp always uses 64 bits.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: "Stefan Richter" <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-card.c
drivers/firewire/core-cdev.c
drivers/firewire/core-device.c
drivers/firewire/core-topology.c
include/linux/firewire.h