[rtems commit] no_bsp/shmsupp/lock.c: Remove rtems_bsp_delay()
Joel Sherrill
joel at rtems.org
Fri Mar 21 13:47:41 UTC 2014
Module: rtems
Branch: master
Commit: 82e507e3e8066de9e870f2e841c9ee59a42adbc8
Changeset: http://git.rtems.org/rtems/commit/?id=82e507e3e8066de9e870f2e841c9ee59a42adbc8
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Mar 17 13:25:48 2014 -0500
no_bsp/shmsupp/lock.c: Remove rtems_bsp_delay()
---
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 769be15..5b53df8 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 );
}
}
More information about the vc
mailing list