From: Stephen Hemminger Date: Tue, 22 Sep 2009 19:41:43 +0000 (+0000) Subject: pktgen: better scheduler friendliness X-Git-Tag: v2.6.32-rc1~27^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef87979c273a2348430648ad1d5c2a5e5df50b6e;p=pandora-kernel.git pktgen: better scheduler friendliness Previous update did not resched in inner loop causing watchdogs. Rewrite inner loop to: * account for delays better with less clock calls * more accurate timing of delay: - only delay if packet was successfully sent - if delay is 100ns and it takes 10ns to build packet then account for that * use wait_event_interruptible_timeout rather than open coding it. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- Reading git-diff-tree failed