canfdtest: fix typo while waiting for tv_stop time
After a few complaint about 100% CPU usage of canfdtest over our PCI -like boards, I have had a look to the source file, and think I have found the issue in can_echo_dut(). Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/15/head
parent
73ae306a11
commit
4d0e6d5169
|
|
@ -239,7 +239,7 @@ static int can_echo_dut(void)
|
|||
}
|
||||
gettimeofday(&tvn, NULL);
|
||||
while ((tv_stop.tv_sec > tvn.tv_sec) ||
|
||||
((tv_stop.tv_sec = tvn.tv_sec) &&
|
||||
((tv_stop.tv_sec == tvn.tv_sec) &&
|
||||
(tv_stop.tv_usec >= tvn.tv_usec)))
|
||||
gettimeofday(&tvn, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue