Commit:     2e45874c5aabe573b6ab4328f303c765701394f9
Parent:     bb61c210835db95b0e9fb612a316422e7cc675e3
Author:     Matthias Kaehlcke <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:02 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:02 2007 +0200

    sched: use list_for_each_entry_safe() in __wake_up_common()
    Use list_for_each_entry_safe() instead of list_for_each_safe() in
    Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
    Signed-off-by: Mike Galbraith <[EMAIL PROTECTED]>
    Reviewed-by: Thomas Gleixner <[EMAIL PROTECTED]>
 kernel/sched.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 2054e55..e92b185 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3634,10 +3634,9 @@ EXPORT_SYMBOL(default_wake_function);
 static void __wake_up_common(wait_queue_head_t *q, unsigned int mode,
                             int nr_exclusive, int sync, void *key)
-       struct list_head *tmp, *next;
+       wait_queue_t *curr, *next;
-       list_for_each_safe(tmp, next, &q->task_list) {
-               wait_queue_t *curr = list_entry(tmp, wait_queue_t, task_list);
+       list_for_each_entry_safe(curr, next, &q->task_list, task_list) {
                unsigned flags = curr->flags;
                if (curr->func(curr, mode, sync, key) &&
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to