diff options
author | Andrew Morton <akpm@osdl.org> | 2004-05-10 00:10:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-10 00:10:24 -0700 |
commit | 782a67476f0bee898202ff0b37a964dc4237c305 (patch) | |
tree | ed0a49f32e89d0f6fcea5a105b8a7a88bc63f787 /kernel | |
parent | 414f345576672dd0bdf28795cd0abc61c8169d26 (diff) | |
download | history-782a67476f0bee898202ff0b37a964dc4237c305.tar.gz |
[PATCH] minor RCU optimization
From: Stephen Hemminger <shemminger@osdl.org>
Minor tweak to rcu, use __list_splice instead of list_splice because the
list has already been checked for empty.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rcupdate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcupdate.c b/kernel/rcupdate.c index f9324b7c8c1025..30253c75aaeaaa 100644 --- a/kernel/rcupdate.c +++ b/kernel/rcupdate.c @@ -223,13 +223,13 @@ static void rcu_process_callbacks(unsigned long unused) if (!list_empty(&RCU_curlist(cpu)) && rcu_batch_after(rcu_ctrlblk.curbatch, RCU_batch(cpu))) { - list_splice(&RCU_curlist(cpu), &list); + __list_splice(&RCU_curlist(cpu), &list); INIT_LIST_HEAD(&RCU_curlist(cpu)); } local_irq_disable(); if (!list_empty(&RCU_nxtlist(cpu)) && list_empty(&RCU_curlist(cpu))) { - list_splice(&RCU_nxtlist(cpu), &RCU_curlist(cpu)); + __list_splice(&RCU_nxtlist(cpu), &RCU_curlist(cpu)); INIT_LIST_HEAD(&RCU_nxtlist(cpu)); local_irq_enable(); |