aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-25 11:52:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-25 11:52:25 -0400
commit3b3b3bd97788e1f574c71f865d8465b00a6b8708 (patch)
tree099cef81c83c1cf095abc5a96d0166e6437e6817
parentf98c2135f8e73f1cfba640dfb80beb0dad75f278 (diff)
parent384fbb96f9268eee0b703b39cb07557403bd9aac (diff)
Merge tag 'firewire-update2' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394
Pull firewire leftover from Stefan Richter: "Occurrences of timeval were supposed to be eliminated last round, now remove a last forgotten one" * tag 'firewire-update2' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394: firewire: nosy: Replace timeval with timespec64
-rw-r--r--drivers/firewire/nosy.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c
index 8a46077129ac..631c977b0da5 100644
--- a/drivers/firewire/nosy.c
+++ b/drivers/firewire/nosy.c
@@ -446,14 +446,16 @@ static void
446bus_reset_irq_handler(struct pcilynx *lynx) 446bus_reset_irq_handler(struct pcilynx *lynx)
447{ 447{
448 struct client *client; 448 struct client *client;
449 struct timeval tv; 449 struct timespec64 ts64;
450 u32 timestamp;
450 451
451 do_gettimeofday(&tv); 452 ktime_get_real_ts64(&ts64);
453 timestamp = ts64.tv_nsec / NSEC_PER_USEC;
452 454
453 spin_lock(&lynx->client_list_lock); 455 spin_lock(&lynx->client_list_lock);
454 456
455 list_for_each_entry(client, &lynx->client_list, link) 457 list_for_each_entry(client, &lynx->client_list, link)
456 packet_buffer_put(&client->buffer, &tv.tv_usec, 4); 458 packet_buffer_put(&client->buffer, &timestamp, 4);
457 459
458 spin_unlock(&lynx->client_list_lock); 460 spin_unlock(&lynx->client_list_lock);
459} 461}