aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-24 02:24:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-24 02:24:27 -0700
commit389fb07b0a3ed522318b22e12054d0212990f5c6 (patch)
tree6dd9a109255ae17a7142345d4a7579b80da608ea /kernel
parent6ae629404093b6d8c9c085d0677840018904d026 (diff)
downloadhistory-389fb07b0a3ed522318b22e12054d0212990f5c6.tar.gz
Un-inline the big kernel lock.
Now that spinlocks are uninlined, it is silly to keep the BKL inlined. And this should make it a lot easier for people to play around with variations on the locking (ie Ingo's semaphores etc).
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 862df56ed45466..54b7402b941031 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4048,21 +4048,6 @@ int __init migration_init(void)
}
#endif
-/*
- * The 'big kernel lock'
- *
- * This spinlock is taken and released recursively by lock_kernel()
- * and unlock_kernel(). It is transparently dropped and reaquired
- * over schedule(). It is used to protect legacy code that hasn't
- * been migrated to a proper locking design yet.
- *
- * Don't use in new code.
- *
- * Note: spinlock debugging needs this even on !CONFIG_SMP.
- */
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-EXPORT_SYMBOL(kernel_flag);
-
#ifdef CONFIG_SMP
/*
* Attach the domain 'sd' to 'cpu' as its base domain. Callers must