diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-01 15:10:08 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-06 09:08:20 +0200 |
commit | 6ca60e5dc94654504dc4c9974733afd0f58d86e3 (patch) | |
tree | 7dd74ec5204972683fe5061a631183e9bd10baff /cpukit/score | |
parent | score: Delete Thread_Wait_information::id (diff) | |
download | rtems-6ca60e5dc94654504dc4c9974733afd0f58d86e3.tar.bz2 |
score: Delete MP support for RW locks
MP support was not implemented.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/include/rtems/score/corerwlockimpl.h | 35 | ||||
-rw-r--r-- | cpukit/score/src/corerwlockobtainread.c | 10 | ||||
-rw-r--r-- | cpukit/score/src/corerwlockobtainwrite.c | 4 |
3 files changed, 13 insertions, 36 deletions
diff --git a/cpukit/score/include/rtems/score/corerwlockimpl.h b/cpukit/score/include/rtems/score/corerwlockimpl.h index e41c6995aa..6d563a56cc 100644 --- a/cpukit/score/include/rtems/score/corerwlockimpl.h +++ b/cpukit/score/include/rtems/score/corerwlockimpl.h @@ -36,15 +36,6 @@ extern "C" { #define CORE_RWLOCK_TQ_OPERATIONS &_Thread_queue_Operations_FIFO /** - * The following type defines the callout which the API provides - * to support global/multiprocessor operations on RWLocks. - */ -typedef void ( *CORE_RWLock_API_mp_support_callout )( - Thread_Control *, - Objects_Id - ); - -/** * Core RWLock handler return statuses. */ typedef enum { @@ -103,23 +94,18 @@ RTEMS_INLINE_ROUTINE void _CORE_RWLock_Destroy( * This routine attempts to obtain the RWLock for read access. * * @param[in] the_rwlock is the RWLock to wait for - * @param[in] id is the id of the object being waited upon * @param[in] wait is true if the calling thread is willing to wait * @param[in] timeout is the number of ticks the calling thread is willing * to wait if @a wait is true. - * @param[in] api_rwlock_mp_support is the routine to invoke if the - * thread unblocked is remote * * @note Status is returned via the thread control block. */ void _CORE_RWLock_Obtain_for_reading( - CORE_RWLock_Control *the_rwlock, - Thread_Control *executing, - Objects_Id id, - bool wait, - Watchdog_Interval timeout, - CORE_RWLock_API_mp_support_callout api_rwlock_mp_support + CORE_RWLock_Control *the_rwlock, + Thread_Control *executing, + bool wait, + Watchdog_Interval timeout ); /** @@ -128,22 +114,17 @@ void _CORE_RWLock_Obtain_for_reading( * This routine attempts to obtain the RWLock for write exclusive access. * * @param[in] the_rwlock is the RWLock to wait for - * @param[in] id is the id of the object being waited upon * @param[in] wait is true if the calling thread is willing to wait * @param[in] timeout is the number of ticks the calling thread is willing * to wait if @a wait is true. - * @param[in] api_rwlock_mp_support is the routine to invoke if the - * thread unblocked is remote * * @note Status is returned via the thread control block. */ void _CORE_RWLock_Obtain_for_writing( - CORE_RWLock_Control *the_rwlock, - Thread_Control *executing, - Objects_Id id, - bool wait, - Watchdog_Interval timeout, - CORE_RWLock_API_mp_support_callout api_rwlock_mp_support + CORE_RWLock_Control *the_rwlock, + Thread_Control *executing, + bool wait, + Watchdog_Interval timeout ); /** diff --git a/cpukit/score/src/corerwlockobtainread.c b/cpukit/score/src/corerwlockobtainread.c index 4676dd7424..71cdf2641d 100644 --- a/cpukit/score/src/corerwlockobtainread.c +++ b/cpukit/score/src/corerwlockobtainread.c @@ -24,12 +24,10 @@ #include <rtems/score/watchdog.h> void _CORE_RWLock_Obtain_for_reading( - CORE_RWLock_Control *the_rwlock, - Thread_Control *executing, - Objects_Id id, - bool wait, - Watchdog_Interval timeout, - CORE_RWLock_API_mp_support_callout api_rwlock_mp_support + CORE_RWLock_Control *the_rwlock, + Thread_Control *executing, + bool wait, + Watchdog_Interval timeout ) { ISR_lock_Context lock_context; diff --git a/cpukit/score/src/corerwlockobtainwrite.c b/cpukit/score/src/corerwlockobtainwrite.c index 04416505c2..3ae1826611 100644 --- a/cpukit/score/src/corerwlockobtainwrite.c +++ b/cpukit/score/src/corerwlockobtainwrite.c @@ -26,10 +26,8 @@ void _CORE_RWLock_Obtain_for_writing( CORE_RWLock_Control *the_rwlock, Thread_Control *executing, - Objects_Id id, bool wait, - Watchdog_Interval timeout, - CORE_RWLock_API_mp_support_callout api_rwlock_mp_support + Watchdog_Interval timeout ) { ISR_lock_Context lock_context; |