[PATCH] rtmutex: move the comments of rt_mutex to correct location

Changbin Du posted 1 patch 1 year ago
include/linux/rtmutex.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
[PATCH] rtmutex: move the comments of rt_mutex to correct location
Posted by Changbin Du 1 year ago
All the fields of old struct rt_mutex now liesin rt_mutex_base. Move the
comments to the correct location.

Signed-off-by: Changbin Du <changbin.du@huawei.com>
---
 include/linux/rtmutex.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h
index 7d049883a08a..f22793fcc694 100644
--- a/include/linux/rtmutex.h
+++ b/include/linux/rtmutex.h
@@ -20,6 +20,14 @@
 
 extern int max_lock_depth; /* for sysctl */
 
+/**
+ * The rt_mutex_base structure
+ *
+ * @wait_lock:	spinlock to protect the structure
+ * @waiters:	rbtree root to enqueue waiters in priority order;
+ *              caches top-waiter (leftmost node).
+ * @owner:	the mutex owner
+ */
 struct rt_mutex_base {
 	raw_spinlock_t		wait_lock;
 	struct rb_root_cached   waiters;
@@ -46,14 +54,6 @@ static inline bool rt_mutex_base_is_locked(struct rt_mutex_base *lock)
 
 extern void rt_mutex_base_init(struct rt_mutex_base *rtb);
 
-/**
- * The rt_mutex structure
- *
- * @wait_lock:	spinlock to protect the structure
- * @waiters:	rbtree root to enqueue waiters in priority order;
- *              caches top-waiter (leftmost node).
- * @owner:	the mutex owner
- */
 struct rt_mutex {
 	struct rt_mutex_base	rtmutex;
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
-- 
2.43.0