public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dipankar Sarma <dipankar@in.ibm.com>
To: Andrew Morton <akpm@zip.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.39-mm1 fixes 1/3
Date: Mon, 30 Sep 2002 16:43:14 +0530	[thread overview]
Message-ID: <20020930164314.A27121@in.ibm.com> (raw)

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

             reply	other threads:[~2002-09-30 11:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-30 11:13 Dipankar Sarma [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020930164314.A27121@in.ibm.com \
    --to=dipankar@in.ibm.com \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox