* [patch] kernel_flag is not needed on UP+preempt
@ 2003-02-12 6:29 Robert Love
0 siblings, 0 replies; only message in thread
From: Robert Love @ 2003-02-12 6:29 UTC (permalink / raw)
To: akpm, torvalds; +Cc: linux-kernel
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'
*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-12 6:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-12 6:29 [patch] kernel_flag is not needed on UP+preempt Robert Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox