patch-2.1.43 linux/kernel/sched.c

Next file: linux/kernel/sys.c
Previous file: linux/kernel/panic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/kernel/sched.c linux/kernel/sched.c
@@ -140,6 +140,7 @@
 	prev->next_run = p;
 }
 
+#ifdef __SMP__
 /*
  * The tasklist_lock protects the linked list of processes.
  *
@@ -154,6 +155,7 @@
 rwlock_t tasklist_lock = RW_LOCK_UNLOCKED;
 spinlock_t scheduler_lock = SPIN_LOCK_UNLOCKED;
 static spinlock_t runqueue_lock = SPIN_LOCK_UNLOCKED;
+#endif
 
 /*
  * Wake up a process. Put it on the run-queue if it's not

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov