replace IdleXLoop with usleep

This commit is contained in:
Gwenhael Le Moine 2024-09-27 21:25:03 +02:00
parent dea07d3bcc
commit 08a683d204
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -399,6 +399,7 @@ static ChfAction EmulatorLoopHandler( const ChfDescriptor* d, const ChfState s,
*/ */
debug1( DEBUG_C_TIMERS, CPU_I_IDLE_X_LOOP, ms ); debug1( DEBUG_C_TIMERS, CPU_I_IDLE_X_LOOP, ms );
// IdleXLoop( ms ); // IdleXLoop( ms );
usleep( ms );
/* End of idle loop; compute actual elapsed time */ /* End of idle loop; compute actual elapsed time */
gettimeofday( &end_idle, NULL ); gettimeofday( &end_idle, NULL );