forked from Imagelibrary/rtems
no_bsp/shmsupp/lock.c: Remove rtems_bsp_delay()
This commit is contained in:
@@ -57,10 +57,12 @@ void Shm_Lock(
|
|||||||
);
|
);
|
||||||
/*
|
/*
|
||||||
* If not available, then may want to delay to reduce load on lock.
|
* If not available, then may want to delay to reduce load on lock.
|
||||||
|
*
|
||||||
|
* NOTE: BSP must initialize the counter facility. Delay value is BSP
|
||||||
|
* dependent.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( lock_value )
|
if ( lock_value )
|
||||||
rtems_bsp_delay( 10 ); /* approximately 10 microseconds */
|
rtems_counter_delay_nanoseconds( 100 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user