Skip to contentSkip to conversation

sched/wake_q: fix typo in wake_q_add

PATCH New Davidlohr Bueso 2 participants 2 messages May 9, 2016 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/wake_q: fix typo in wake_q_add

... the comment clearly refers to wake_up_q, and not wake_up_list.

---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
index c82ca6eccfec..c59e4df38591 100644
@@ -400,7 +400,7 @@ void wake_q_add(struct wake_q_head *head, struct task_struct *task)
 	 * wakeup due to that.
 	 *
 	 * This cmpxchg() implies a full barrier, which pairs with the write
-	 * barrier implied by the wakeup in wake_up_list().
+	 * barrier implied by the wakeup in wake_up_q().
 	 */
 	if (cmpxchg(&node->next, NULL, WAKE_Q_TAIL))
 		return;
Signature · 1 line
2.8.1
#1 lore raw

[tip:sched/core] sched/core: Fix comment typo in wake_q_add()

sched/core: Fix comment typo in wake_q_add()
Commit-ID:  58fe9c4621b7219e724c0b7af053112f974a08c3
Gitweb:     http://git.kernel.org/tip/58fe9c4621b7219e724c0b7af053112f974a08c3
Author:     Davidlohr Bueso <[email protected]>
AuthorDate: Sun, 8 May 2016 20:58:10 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 9 May 2016 08:39:52 +0200

sched/core: Fix comment typo in wake_q_add()

... the comment clearly refers to wake_up_q(), and not wake_up_list().

---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
index a6d3e7a..e09f92c 100644
@@ -465,7 +465,7 @@ void wake_q_add(struct wake_q_head *head, struct task_struct *task)
 	 * wakeup due to that.
 	 *
 	 * This cmpxchg() implies a full barrier, which pairs with the write
-	 * barrier implied by the wakeup in wake_up_list().
+	 * barrier implied by the wakeup in wake_up_q().
 	 */
 	if (cmpxchg(&node->next, NULL, WAKE_Q_TAIL))
 		return;