score: Remove id parameter _CORE_mutex_Seize()

Parameter was unused.
This commit is contained in:
Sebastian Huber
2016-04-18 07:00:55 +02:00
parent ca18cb593f
commit 8765c574b1
6 changed files with 2 additions and 12 deletions

View File

@@ -394,7 +394,6 @@ rtems_bsdnet_semaphore_obtain (void)
_CORE_mutex_Seize (
&the_networkSemaphore->Core_control.mutex,
executing,
networkSemaphore,
1, /* wait */
0, /* forever */
&lock_context

View File

@@ -60,7 +60,6 @@ int _POSIX_Mutex_Lock_support(
_CORE_mutex_Seize(
&the_mutex->Mutex,
executing,
the_mutex->Object.id,
blocking,
timeout,
&lock_context

View File

@@ -83,7 +83,6 @@ rtems_status_code rtems_semaphore_obtain(
_CORE_mutex_Seize(
&the_semaphore->Core_control.mutex,
executing,
id,
wait,
timeout,
&lock_context

View File

@@ -212,7 +212,6 @@ void _CORE_mutex_Seize_interrupt_blocking(
* support routine @a _Core_mutex_Seize_interrupt_blocking.
*
* @param[in] the_mutex is the mutex to attempt to lock
* @param[in] id is the Id of the owning API level Semaphore object
* @param[in] wait is true if the thread is willing to wait
* @param[in] timeout is the maximum number of ticks to block
* @param[in] lock_context is a temporary variable used to contain the ISR
@@ -234,7 +233,6 @@ void _CORE_mutex_Seize_interrupt_blocking(
RTEMS_INLINE_ROUTINE void _CORE_mutex_Seize_body(
CORE_mutex_Control *the_mutex,
Thread_Control *executing,
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
ISR_lock_Context *lock_context
@@ -269,7 +267,6 @@ RTEMS_INLINE_ROUTINE void _CORE_mutex_Seize_body(
*
* @param[in] _the_mutex is the mutex to attempt to lock
* @param[in] _executing The currently executing thread.
* @param[in] _id is the Id of the owning API level Semaphore object
* @param[in] _wait is true if the thread is willing to wait
* @param[in] _timeout is the maximum number of ticks to block
* @param[in] _lock_context is a temporary variable used to contain the ISR
@@ -279,16 +276,15 @@ RTEMS_INLINE_ROUTINE void _CORE_mutex_Seize_body(
void _CORE_mutex_Seize(
CORE_mutex_Control *_the_mutex,
Thread_Control *_executing,
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_lock_Context *_lock_context
);
#else
#define _CORE_mutex_Seize( \
_the_mutex, _executing, _id, _wait, _timeout, _lock_context ) \
_the_mutex, _executing, _wait, _timeout, _lock_context ) \
_CORE_mutex_Seize_body( \
_the_mutex, _executing, _id, _wait, _timeout, _lock_context )
_the_mutex, _executing, _wait, _timeout, _lock_context )
#endif
CORE_mutex_Status _CORE_mutex_Do_surrender(

View File

@@ -35,7 +35,6 @@ void _API_Mutex_Lock( API_Mutex_Control *the_mutex )
_CORE_mutex_Seize(
&the_mutex->Mutex,
_Thread_Executing,
the_mutex->Object.id,
true,
0,
&lock_context

View File

@@ -28,7 +28,6 @@
void _CORE_mutex_Seize(
CORE_mutex_Control *_the_mutex,
Thread_Control *_executing,
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
@@ -37,7 +36,6 @@ void _CORE_mutex_Seize(
_CORE_mutex_Seize_body(
_the_mutex,
_executing,
_id,
_wait,
_timeout,
_level