Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] svcsock timestamp fix

Convert nanoseconds to microseconds correctly.

Spotted by Steve Dickson <SteveD@redhat.com>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Andrew Morton and committed by
Linus Torvalds
4bcde03d 94c1d318

+1 -1
+1 -1
net/sunrpc/svcsock.c
··· 587 587 struct timeval tv; 588 588 589 589 tv.tv_sec = xtime.tv_sec; 590 - tv.tv_usec = xtime.tv_nsec * 1000; 590 + tv.tv_usec = xtime.tv_nsec / NSEC_PER_USEC; 591 591 skb_set_timestamp(skb, &tv); 592 592 /* Don't enable netstamp, sunrpc doesn't 593 593 need that much accuracy */