Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.1.100 /kernel/fork.c

Filename:/kernel/fork.c
Lines Added:2
Lines Deleted:6
Also changed in: (Previous) 2.1.96  2.1.92  2.1.90  2.1.89  2.1.81  2.1.80 
(Following) 2.1.106  2.1.107  2.1.109  2.1.114  2.1.116  2.1.117 

Location
[  2.1.100
  [  kernel
     o  fork.c

Patch

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)
 {


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.