pktgen: spin using hrtimer
authorStephen Hemminger <shemminger@vyatta.com>
Sat, 29 Aug 2009 06:41:29 +0000 (23:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2009 06:41:29 +0000 (23:41 -0700)
commit2bc481cf433879f0e6cdd4d899fc21ee05dcea23
tree5afcce7af1511f105699cc74cc9df1b96b471eac
parentfd29cf72621071d1d5f9bae634a4505b05f0e58b
pktgen: spin using hrtimer

This changes how the pktgen thread spins/waits between
packets if delay is configured. It uses a high res timer to
wait for time to arrive.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/hrtimer.c
net/core/pktgen.c