[PATCH] moved comment above function declaration

Malte Münch mamu at stablerock.de
Mon Nov 12 10:22:14 UTC 2018


---
 cpukit/include/rtems/score/smplockmcs.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/cpukit/include/rtems/score/smplockmcs.h b/cpukit/include/rtems/score/smplockmcs.h
index 5a1ad23dc9..ce7fd72261 100644
--- a/cpukit/include/rtems/score/smplockmcs.h
+++ b/cpukit/include/rtems/score/smplockmcs.h
@@ -127,6 +127,17 @@ static inline void _SMP_MCS_lock_Destroy( SMP_MCS_lock_Control *lock )
   (void) lock;
 }
 
+/**
+ * @brief Acquires an SMP MCS lock.
+ *
+ * This function will not disable interrupts.  The caller must ensure that the
+ * current thread of execution is not interrupted indefinite once it obtained
+ * the SMP MCS lock.
+ *
+ * @param lock The SMP MCS lock control.
+ * @param context The SMP MCS lock context.
+ * @param stats The SMP lock statistics.
+ */
 static inline void _SMP_MCS_lock_Do_acquire(
   SMP_MCS_lock_Control   *lock,
   SMP_MCS_lock_Context   *context
@@ -177,17 +188,6 @@ static inline void _SMP_MCS_lock_Do_acquire(
 #endif
 }
 
-/**
- * @brief Acquires an SMP MCS lock.
- *
- * This function will not disable interrupts.  The caller must ensure that the
- * current thread of execution is not interrupted indefinite once it obtained
- * the SMP MCS lock.
- *
- * @param lock The SMP MCS lock control.
- * @param context The SMP MCS lock context.
- * @param stats The SMP lock statistics.
- */
 #if defined(RTEMS_PROFILING)
   #define _SMP_MCS_lock_Acquire( lock, context, stats ) \
     _SMP_MCS_lock_Do_acquire( lock, context, stats )
-- 
2.19.1



More information about the devel mailing list