aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2009-02-02 07:24:34 -0500
committerArjan van de Ven <arjan@linux.intel.com>2009-02-08 13:00:26 -0500
commitf7de7621f07495ad14fb23a812003bcf8f6af65a (patch)
tree56eee689f5bbc2cac09c08fcdf897e9366dafbf8 /kernel
parent766ccb9ed406c230d13c145def08ebea1b932982 (diff)
async: use list_move_tail
list.h provides a dedicated primitive for "list_del followed by list_add_tail"... list_move_tail. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/async.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/async.c b/kernel/async.c
index e23399d88bac..f565891f2c9b 100644
--- a/kernel/async.c
+++ b/kernel/async.c
@@ -133,8 +133,7 @@ static void run_one_entry(void)
133 entry = list_first_entry(&async_pending, struct async_entry, list); 133 entry = list_first_entry(&async_pending, struct async_entry, list);
134 134
135 /* 2) move it to the running queue */ 135 /* 2) move it to the running queue */
136 list_del(&entry->list); 136 list_move_tail(&entry->list, entry->running);
137 list_add_tail(&entry->list, entry->running);
138 spin_unlock_irqrestore(&async_lock, flags); 137 spin_unlock_irqrestore(&async_lock, flags);
139 138
140 /* 3) run it (and print duration)*/ 139 /* 3) run it (and print duration)*/