[PATCH 25/25] no_bsp/shmsupp/lock.c: Remove rtems_bsp_delay()

Joel Sherrill joel.sherrill at oarcorp.com
Thu Mar 20 18:29:21 UTC 2014


---
 c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c b/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c
index 78ddb75..c62464b 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/lock.c
@@ -57,10 +57,12 @@ void Shm_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 )
-        rtems_bsp_delay( 10 );   /* approximately 10 microseconds */
+        rtems_counter_delay_nanoseconds( 100 );
    }
 }
 
-- 
1.7.1




More information about the devel mailing list