From: Eric Dumazet Date: Thu, 20 Oct 2011 21:00:21 +0000 (-0400) Subject: pktgen: remove ndelay() call X-Git-Tag: v3.2-rc1~182^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33136d12be00596a8320d4fe88f95c44f67afbdb;p=pandora-kernel.git pktgen: remove ndelay() call Daniel Turull reported inaccuracies in pktgen when using low packet rates, because we call ndelay(val) with values bigger than 20000. Instead of calling ndelay() for delays < 100us, we can instead loop calling ktime_now() only. Reported-by: Daniel Turull Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed