X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Frcutiny.c;h=bc845960c63a69adcf30f41c1aa785e15542bfee;hb=d46195ebd6bafd899b4324427dea3cd1e6365de7;hp=636af6d9c6e565ca6e6d7010941501901c8322b4;hpb=c9a7fe9672612c0b595633d2945f52257ad92b20;p=pandora-kernel.git diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c index 636af6d9c6e5..bc845960c63a 100644 --- a/kernel/rcutiny.c +++ b/kernel/rcutiny.c @@ -160,6 +160,11 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp) /* Move the ready-to-invoke callbacks to a local list. */ local_irq_save(flags); + if (rcp->donetail == &rcp->rcucblist) { + /* No callbacks ready, so just leave. */ + local_irq_restore(flags); + return; + } RCU_TRACE(trace_rcu_batch_start(rcp->name, 0, -1)); list = rcp->rcucblist; rcp->rcucblist = *rcp->donetail;