* [patch] no need for kernel_flag on UP
@ 2003-03-07 22:18 Robert Love
0 siblings, 0 replies; only message in thread
From: Robert Love @ 2003-03-07 22:18 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
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'
*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-07 22:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-07 22:18 [patch] no need for kernel_flag on UP Robert Love
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®