diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-02-26 10:29:02 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-04 12:02:50 +0100 |
commit | 2b7fe35688fbeb3450ca79b7c5907811433e4fa9 (patch) | |
tree | d9bdc6629e0867a72445b4ec04fa8049a3ed23ba /cpukit/score/include/rtems/score/threaddispatch.h | |
parent | smptests/smpcapture01: Avoid livelock condition (diff) | |
download | rtems-2b7fe35688fbeb3450ca79b7c5907811433e4fa9.tar.bz2 |
score: Add parameter to Giant acquire/release
Update #2273.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/threaddispatch.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/threaddispatch.h b/cpukit/score/include/rtems/score/threaddispatch.h index f814072529..170067534a 100644 --- a/cpukit/score/include/rtems/score/threaddispatch.h +++ b/cpukit/score/include/rtems/score/threaddispatch.h @@ -97,17 +97,25 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) * This lock is implicitly acquired in * _Thread_Dispatch_increment_disable_level(). * - * Thread dispatching must be disabled before this lock can be acquired. + * Thread dispatching must be disabled before the Giant lock can be acquired + * and must no be enabled while owning the Giant lock. The thread dispatch + * disable level is not altered by this function. + * + * @param[in] cpu_self The current processor. */ - void _Giant_Acquire( void ); + void _Giant_Acquire( Per_CPU_Control *cpu_self ); /** * @brief Releases the giant lock. * * This lock is implicitly released in * _Thread_Dispatch_decrement_disable_level(). + * + * The thread dispatch disable level is not altered by this function. + * + * @param[in] cpu_self The current processor. */ - void _Giant_Release( void ); + void _Giant_Release( Per_CPU_Control *cpu_self ); /** * @brief Releases the giant lock completely if held by the executing processor. @@ -116,9 +124,9 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) * * The only use case for this operation is in _SMP_Request_shutdown(). * - * @param[in] self_cpu The current processor. + * @param[in] cpu_self The current processor. */ - void _Giant_Drop( Per_CPU_Control *self_cpu ); + void _Giant_Drop( Per_CPU_Control *cpu_self ); /** * @brief Increments the thread dispatch level. |