| Kernel v2.1.100 /kernel/fork.c |
|---|
 2.1.100
 kernel
 fork.c
diff -u --recursive --new-file v2.1.99/linux/kernel/fork.c linux/kernel/fork.c
--- v2.1.99/linux/kernel/fork.c Tue Apr 14 14:29:26 1998
+++ linux/kernel/fork.c Wed May 6 14:42:54 1998
@@ -56,9 +56,7 @@
int task_count;
} *uidhash[UIDHASH_SZ];
-#ifdef __SMP__
-static spinlock_t uidhash_lock = SPIN_LOCK_UNLOCKED;
-#endif
+spinlock_t uidhash_lock = SPIN_LOCK_UNLOCKED;
kmem_cache_t *uid_cachep;
@@ -154,10 +152,8 @@
return -EAGAIN;
}
-#ifdef __SMP__
/* Protects next_safe and last_pid. */
-static spinlock_t lastpid_lock = SPIN_LOCK_UNLOCKED;
-#endif
+spinlock_t lastpid_lock = SPIN_LOCK_UNLOCKED;
static int get_pid(unsigned long flags)
{
|