Skip to contentSkip to conversation

no need for kernel_flag on UP

PATCH New Robert Love 1 participant 1 message Mar 7, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 no need for kernel_flag on UP

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(-)
kernel/sched.c +1 -1
diff -urN linux-2.5.64-bk/kernel/sched.c linux/kernel/sched.c
@@ -2405,7 +2405,7 @@
 
 #endif
 
-#if CONFIG_SMP || CONFIG_PREEMPT
+#if CONFIG_SMP
 /*
  * The 'big kernel lock'
  *