From: Robert Love <rml@tech9.net>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [patch] no need for kernel_flag on UP
Date: 07 Mar 2003 17:18:50 -0500 [thread overview]
Message-ID: <1047075530.12130.8.camel@phantasy.awol.org> (raw)
Linus,
Attached patch is a minor cleanup (and memory reduction for gcc < 3).
We currently define and declare the BKL's kernel_flag spinlock on either
SMP or PREEMPT, which means a UP+PREEMPT machine gets it.
We only need the actual lock on SMP.
Patch is against current BK, please apply.
Robert Love
kernel/sched.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -urN linux-2.5.64-bk/kernel/sched.c linux/kernel/sched.c
--- linux-2.5.64-bk/kernel/sched.c 2003-03-07 17:01:34.727552472 -0500
+++ linux/kernel/sched.c 2003-03-07 17:14:54.684940464 -0500
@@ -2405,7 +2405,7 @@
#endif
-#if CONFIG_SMP || CONFIG_PREEMPT
+#if CONFIG_SMP
/*
* The 'big kernel lock'
*
reply other threads:[~2003-03-07 22:09 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=1047075530.12130.8.camel@phantasy.awol.org \
--to=rml@tech9.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®