mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
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>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
73ae306a11
commit
4d0e6d5169
+1
-1
@@ -239,7 +239,7 @@ static int can_echo_dut(void)
|
|||||||
}
|
}
|
||||||
gettimeofday(&tvn, NULL);
|
gettimeofday(&tvn, NULL);
|
||||||
while ((tv_stop.tv_sec > tvn.tv_sec) ||
|
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)))
|
(tv_stop.tv_usec >= tvn.tv_usec)))
|
||||||
gettimeofday(&tvn, NULL);
|
gettimeofday(&tvn, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user