Skip to contentSkip to conversation

rtmutex: move the comments of rt_mutex to correct location

PATCH New Changbin Du 1 participant 1 message Jan 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtmutex: move the comments of rt_mutex to correct location

All the fields of old struct rt_mutex now liesin rt_mutex_base. Move the comments to the correct location.

---
 include/linux/rtmutex.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
include/linux/rtmutex.h +8 -8
index 7d049883a08a..f22793fcc694 100644
@@ -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
Signature · 1 line
2.43.0