lkml.org 
[lkml]   [2002]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.5.39-mm1 fixes 1/3
Hi Andrew,

rcu_ltimer was used mostly for performance measurements and wasn't
completely preemption friendly. With this fix (against 2.5.39-mm1),
it should be now.

Thanks
--
Dipankar Sarma <dipankar@in.ibm.com> http://lse.sourceforge.net
Linux Technology Center, IBM Software Lab, Bangalore, India.


--- kernel/rcupdate.c.orig Mon Sep 30 13:55:15 2002
+++ kernel/rcupdate.c Mon Sep 30 13:55:29 2002
@@ -60,12 +60,13 @@
*/
void call_rcu(struct rcu_head *head, void (*func)(void *arg), void *arg)
{
- int cpu = smp_processor_id();
+ int cpu;
unsigned long flags;

head->func = func;
head->arg = arg;
local_irq_save(flags);
+ cpu = smp_processor_id();
list_add_tail(&head->list, &RCU_nxtlist(cpu));
local_irq_restore(flags);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.042 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site