public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.5.39-mm1 fixes 1/3
@ 2002-09-30 11:13 Dipankar Sarma
  2002-09-30 11:15 ` [PATCH] 2.5.39-mm1 fixes 2/3 Dipankar Sarma
  0 siblings, 1 reply; 3+ messages in thread
From: Dipankar Sarma @ 2002-09-30 11:13 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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);
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-30 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-30 11:13 [PATCH] 2.5.39-mm1 fixes 1/3 Dipankar Sarma
2002-09-30 11:15 ` [PATCH] 2.5.39-mm1 fixes 2/3 Dipankar Sarma
2002-09-30 11:17   ` [PATCH] 2.5.39-mm1 fixes 3/3 Dipankar Sarma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox