All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: akpm@digeo.com, torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [patch] kernel_flag is not needed on UP+preempt
Date: 12 Feb 2003 01:29:00 -0500	[thread overview]
Message-ID: <1045031340.786.89.camel@phantasy> (raw)

There is no reason to define and declare the actual kernel_flag spinlock
on UP systems, even if kernel preemption is enabled.

Preempt needs to use the lock_kernel() calls, but it does not need the
actual lock to exist.

So change the check from SMP || PREEMPT to just SMP.  Tests fine.  Patch
is against 2.5.60.

	Robert Love

 kernel/sched.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -urN linux-2.5.60-mm1/kernel/sched.c linux/kernel/sched.c
--- linux-2.5.60-mm1/kernel/sched.c	2003-02-12 00:28:51.788915192 -0500
+++ linux/kernel/sched.c	2003-02-12 00:29:10.539064736 -0500
@@ -2644,7 +2644,7 @@
 
 #endif
 
-#if CONFIG_SMP || CONFIG_PREEMPT
+#if CONFIG_SMP
 /*
  * The 'big kernel lock'
  *




                 reply	other threads:[~2003-02-12  6:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1045031340.786.89.camel@phantasy \
    --to=rml@tech9.net \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.