lkml.org 
[lkml]   [2002]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[BKPATCH] further BKL cleanups
Now that we have <asm-*/smplock.h> remove and everything in
<linux/smp_lock.h> we can move the definition/export of kernel_flag
to common code. Also cleanup smp_lock.h a little more.


You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


ChangeSet@1.509, 2002-08-23 13:56:54+02:00, hch@sb.bsdonline.org
Cleanup BKL handling and move kernel_flag definition to common code


arch/alpha/kernel/alpha_ksyms.c | 2 -
arch/alpha/kernel/smp.c | 2 -
arch/arm/kernel/armksyms.c | 4 --
arch/arm/kernel/setup.c | 4 --
arch/i386/kernel/i386_ksyms.c | 1
arch/i386/kernel/smp.c | 4 --
arch/ia64/kernel/ia64_ksyms.c | 4 --
arch/ia64/kernel/smp.c | 8 ----
arch/mips/kernel/smp.c | 1
arch/mips64/kernel/smp.c | 1
arch/parisc/kernel/parisc_ksyms.c | 3 -
arch/ppc/kernel/ppc_ksyms.c | 3 -
arch/ppc/kernel/smp.c | 1
arch/ppc64/kernel/ppc_ksyms.c | 1
arch/ppc64/kernel/smp.c | 1
arch/s390/kernel/smp.c | 3 -
arch/s390x/kernel/smp.c | 3 -
arch/sparc/kernel/smp.c | 3 -
arch/sparc/kernel/sparc_ksyms.c | 7 ----
arch/sparc64/kernel/smp.c | 3 -
arch/sparc64/kernel/sparc64_ksyms.c | 8 ----
arch/x86_64/kernel/smp.c | 3 -
arch/x86_64/kernel/x8664_ksyms.c | 1
include/linux/smp_lock.h | 61 ++++++++++++++++--------------------
kernel/ksyms.c | 4 ++
kernel/sched.c | 15 ++++++++
26 files changed, 48 insertions, 103 deletions


diff -Nru a/arch/alpha/kernel/alpha_ksyms.c b/arch/alpha/kernel/alpha_ksyms.c
--- a/arch/alpha/kernel/alpha_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/alpha/kernel/alpha_ksyms.c Fri Aug 23 14:19:06 2002
@@ -40,7 +40,6 @@
extern struct hwrpb_struct *hwrpb;
extern void dump_thread(struct pt_regs *, struct user *);
extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
-extern spinlock_t kernel_flag;
extern spinlock_t rtc_lock;

/* these are C runtime functions with special calling conventions: */
@@ -207,7 +206,6 @@
*/

#ifdef CONFIG_SMP
-EXPORT_SYMBOL(kernel_flag);
EXPORT_SYMBOL(synchronize_irq);
EXPORT_SYMBOL(flush_tlb_all);
EXPORT_SYMBOL(flush_tlb_mm);
diff -Nru a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c
--- a/arch/alpha/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/alpha/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -67,8 +67,6 @@
IPI_CPU_STOP,
};

-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-
/* Set to a secondary's cpuid when it comes online. */
static int smp_secondary_alive __initdata = 0;

diff -Nru a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c
--- a/arch/arm/kernel/armksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/arm/kernel/armksyms.c Fri Aug 23 14:19:06 2002
@@ -273,7 +273,3 @@
EXPORT_SYMBOL_NOVERS(__up_wakeup);

EXPORT_SYMBOL(get_wchan);
-
-#ifdef CONFIG_PREEMPT
-EXPORT_SYMBOL(kernel_flag);
-#endif
diff -Nru a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
--- a/arch/arm/kernel/setup.c Fri Aug 23 14:19:06 2002
+++ b/arch/arm/kernel/setup.c Fri Aug 23 14:19:06 2002
@@ -36,10 +36,6 @@
#define MEM_SIZE (16*1024*1024)
#endif

-#ifdef CONFIG_PREEMPT
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-#endif
-
#if defined(CONFIG_FPE_NWFPE) || defined(CONFIG_FPE_FASTFPE)
char fpe_type[8];

diff -Nru a/arch/i386/kernel/i386_ksyms.c b/arch/i386/kernel/i386_ksyms.c
--- a/arch/i386/kernel/i386_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/i386/kernel/i386_ksyms.c Fri Aug 23 14:19:06 2002
@@ -126,7 +126,6 @@

#ifdef CONFIG_SMP
EXPORT_SYMBOL(cpu_data);
-EXPORT_SYMBOL(kernel_flag);
EXPORT_SYMBOL(cpu_online_map);
EXPORT_SYMBOL_NOVERS(__write_lock_failed);
EXPORT_SYMBOL_NOVERS(__read_lock_failed);
diff -Nru a/arch/i386/kernel/smp.c b/arch/i386/kernel/smp.c
--- a/arch/i386/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/i386/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -18,6 +18,7 @@
#include <linux/kernel_stat.h>
#include <linux/mc146818rtc.h>
#include <linux/cache.h>
+#include <linux/interrupt.h>

#include <asm/mtrr.h>
#include <asm/pgalloc.h>
@@ -102,9 +103,6 @@
* or are signal timing bugs worked around in hardware and there's
* about nothing of note with C stepping upwards.
*/
-
-/* The 'big kernel lock' */
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;

struct tlb_state cpu_tlbstate[NR_CPUS] __cacheline_aligned = {[0 ... NR_CPUS-1] = { &init_mm, 0, }};

diff -Nru a/arch/ia64/kernel/ia64_ksyms.c b/arch/ia64/kernel/ia64_ksyms.c
--- a/arch/ia64/kernel/ia64_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/ia64/kernel/ia64_ksyms.c Fri Aug 23 14:19:06 2002
@@ -84,10 +84,6 @@
EXPORT_SYMBOL(smp_call_function_single);
EXPORT_SYMBOL(cpu_online_map);
EXPORT_SYMBOL(ia64_cpu_to_sapicid);
-
-#include <asm/smplock.h>
-EXPORT_SYMBOL(kernel_flag);
-
#else /* !CONFIG_SMP */

EXPORT_SYMBOL(__flush_tlb_all);
diff -Nru a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c
--- a/arch/ia64/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/ia64/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -53,14 +53,6 @@
#include <asm/mca.h>

/*
- * The Big Kernel Lock. It's not supposed to be used for performance critical stuff
- * anymore. But we still need to align it because certain workloads are still affected by
- * it. For example, llseek() and various other filesystem related routines still use the
- * BKL.
- */
-spinlock_t kernel_flag __cacheline_aligned = SPIN_LOCK_UNLOCKED;
-
-/*
* Structure and data for smp_call_function(). This is designed to minimise static memory
* requirements. It also looks cleaner.
*/
diff -Nru a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
--- a/arch/mips/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/mips/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -53,7 +53,6 @@


/* Ze Big Kernel Lock! */
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
int smp_threads_ready; /* Not used */
int smp_num_cpus;
int global_irq_holder = NO_PROC_ID;
diff -Nru a/arch/mips64/kernel/smp.c b/arch/mips64/kernel/smp.c
--- a/arch/mips64/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/mips64/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -53,7 +53,6 @@
#endif /* CONFIG_SGI_IP27 */

/* The 'big kernel lock' */
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
int smp_threads_ready; /* Not used */
atomic_t smp_commenced = ATOMIC_INIT(0);
struct cpuinfo_mips cpu_data[NR_CPUS];
diff -Nru a/arch/parisc/kernel/parisc_ksyms.c b/arch/parisc/kernel/parisc_ksyms.c
--- a/arch/parisc/kernel/parisc_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/parisc/kernel/parisc_ksyms.c Fri Aug 23 14:19:06 2002
@@ -35,9 +35,6 @@
#ifdef CONFIG_SMP
EXPORT_SYMBOL(synchronize_irq);

-#include <asm/smplock.h>
-EXPORT_SYMBOL(kernel_flag);
-
#include <asm/system.h>
EXPORT_SYMBOL(__global_sti);
EXPORT_SYMBOL(__global_cli);
diff -Nru a/arch/ppc/kernel/ppc_ksyms.c b/arch/ppc/kernel/ppc_ksyms.c
--- a/arch/ppc/kernel/ppc_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/ppc/kernel/ppc_ksyms.c Fri Aug 23 14:19:06 2002
@@ -93,9 +93,6 @@
EXPORT_SYMBOL(disable_irq);
EXPORT_SYMBOL(disable_irq_nosync);
EXPORT_SYMBOL(probe_irq_mask);
-#ifdef CONFIG_SMP
-EXPORT_SYMBOL(kernel_flag);
-#endif /* CONFIG_SMP */

EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
EXPORT_SYMBOL_NOVERS(DMA_MODE_READ);
diff -Nru a/arch/ppc/kernel/smp.c b/arch/ppc/kernel/smp.c
--- a/arch/ppc/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/ppc/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -47,7 +47,6 @@
struct klock_info_struct klock_info = { KLOCK_CLEAR, 0 };
atomic_t ipi_recv;
atomic_t ipi_sent;
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
unsigned int prof_multiplier[NR_CPUS] = { [1 ... NR_CPUS-1] = 1 };
unsigned int prof_counter[NR_CPUS] = { [1 ... NR_CPUS-1] = 1 };
unsigned long cache_decay_ticks = HZ/100;
diff -Nru a/arch/ppc64/kernel/ppc_ksyms.c b/arch/ppc64/kernel/ppc_ksyms.c
--- a/arch/ppc64/kernel/ppc_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/ppc64/kernel/ppc_ksyms.c Fri Aug 23 14:19:06 2002
@@ -74,7 +74,6 @@
EXPORT_SYMBOL(disable_irq_nosync);
#ifdef CONFIG_SMP
EXPORT_SYMBOL(synchronize_irq);
-EXPORT_SYMBOL(kernel_flag);
#endif /* CONFIG_SMP */

EXPORT_SYMBOL(register_ioctl32_conversion);
diff -Nru a/arch/ppc64/kernel/smp.c b/arch/ppc64/kernel/smp.c
--- a/arch/ppc64/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/ppc64/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -51,7 +51,6 @@
#include <asm/machdep.h>

int smp_threads_ready = 0;
-spinlock_t kernel_flag __cacheline_aligned = SPIN_LOCK_UNLOCKED;
unsigned long cache_decay_ticks;

/* initialised so it doesnt end up in bss */
diff -Nru a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
--- a/arch/s390/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/s390/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -54,8 +54,6 @@
int smp_threads_ready=0; /* Set when the idlers are all forked. */
static atomic_t smp_commenced = ATOMIC_INIT(0);

-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-
volatile unsigned long phys_cpu_present_map;
volatile unsigned long cpu_online_map;
unsigned long cache_decay_ticks = 0;
@@ -634,7 +632,6 @@
}

EXPORT_SYMBOL(lowcore_ptr);
-EXPORT_SYMBOL(kernel_flag);
EXPORT_SYMBOL(smp_ctl_set_bit);
EXPORT_SYMBOL(smp_ctl_clear_bit);
EXPORT_SYMBOL(smp_num_cpus);
diff -Nru a/arch/s390x/kernel/smp.c b/arch/s390x/kernel/smp.c
--- a/arch/s390x/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/s390x/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -53,8 +53,6 @@
int smp_threads_ready=0; /* Set when the idlers are all forked. */
static atomic_t smp_commenced = ATOMIC_INIT(0);

-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-
volatile unsigned long phys_cpu_present_map;
volatile unsigned long cpu_online_map;
unsigned long cache_decay_ticks = 0;
@@ -613,7 +611,6 @@
}

EXPORT_SYMBOL(lowcore_ptr);
-EXPORT_SYMBOL(kernel_flag);
EXPORT_SYMBOL(smp_ctl_set_bit);
EXPORT_SYMBOL(smp_ctl_clear_bit);
EXPORT_SYMBOL(smp_num_cpus);
diff -Nru a/arch/sparc/kernel/smp.c b/arch/sparc/kernel/smp.c
--- a/arch/sparc/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/sparc/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -66,9 +66,6 @@
* instruction which is much better...
*/

-/* Kernel spinlock */
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-
/* Used to make bitops atomic */
unsigned char bitops_spinlock = 0;

diff -Nru a/arch/sparc/kernel/sparc_ksyms.c b/arch/sparc/kernel/sparc_ksyms.c
--- a/arch/sparc/kernel/sparc_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/sparc/kernel/sparc_ksyms.c Fri Aug 23 14:19:06 2002
@@ -77,10 +77,6 @@

extern void dump_thread(struct pt_regs *, struct user *);

-#ifdef CONFIG_SMP
-extern spinlock_t kernel_flag;
-#endif
-
/* One thing to note is that the way the symbols of the mul/div
* support routines are named is a mess, they all start with
* a '.' which makes it a bitch to export, here is the trick:
@@ -130,9 +126,6 @@
EXPORT_SYMBOL_PRIVATE(_change_bit);

#ifdef CONFIG_SMP
-/* Kernel wide locking */
-EXPORT_SYMBOL(kernel_flag);
-
/* IRQ implementation. */
EXPORT_SYMBOL(global_irq_holder);
EXPORT_SYMBOL(synchronize_irq);
diff -Nru a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
--- a/arch/sparc64/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/sparc64/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -46,9 +46,6 @@
/* Please don't make this stuff initdata!!! --DaveM */
static unsigned char boot_cpu_id;

-/* Kernel spinlock */
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-
atomic_t sparc64_num_cpus_online = ATOMIC_INIT(0);
unsigned long cpu_online_map = 0;
atomic_t sparc64_num_cpus_possible = ATOMIC_INIT(0);
diff -Nru a/arch/sparc64/kernel/sparc64_ksyms.c b/arch/sparc64/kernel/sparc64_ksyms.c
--- a/arch/sparc64/kernel/sparc64_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/sparc64/kernel/sparc64_ksyms.c Fri Aug 23 14:19:06 2002
@@ -101,9 +101,7 @@
extern void dump_thread(struct pt_regs *, struct user *);
extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs);

-#ifdef CONFIG_SMP
-extern spinlock_t kernel_flag;
-#ifdef CONFIG_DEBUG_SPINLOCK
+#if defined(CONFIG_SMP) && defined(CONFIG_DEBUG_SPINLOCK)
extern void _do_spin_lock (spinlock_t *lock, char *str);
extern void _do_spin_unlock (spinlock_t *lock);
extern int _spin_trylock (spinlock_t *lock);
@@ -112,7 +110,6 @@
extern void _do_write_lock(rwlock_t *rw, char *str);
extern void _do_write_unlock(rwlock_t *rw);
#endif
-#endif

extern unsigned long phys_base;
extern unsigned long pfn_base;
@@ -126,9 +123,6 @@
EXPORT_SYMBOL(__write_lock);
EXPORT_SYMBOL(__write_unlock);
#endif
-
-/* Kernel wide locking */
-EXPORT_SYMBOL(kernel_flag);

/* Hard IRQ locking */
#ifdef CONFIG_SMP
diff -Nru a/arch/x86_64/kernel/smp.c b/arch/x86_64/kernel/smp.c
--- a/arch/x86_64/kernel/smp.c Fri Aug 23 14:19:06 2002
+++ b/arch/x86_64/kernel/smp.c Fri Aug 23 14:19:06 2002
@@ -22,9 +22,6 @@
#include <asm/pgalloc.h>
#include <asm/tlbflush.h>

-/* The 'big kernel lock' */
-spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
-
/*
* the following functions deal with sending IPIs between CPUs.
*
diff -Nru a/arch/x86_64/kernel/x8664_ksyms.c b/arch/x86_64/kernel/x8664_ksyms.c
--- a/arch/x86_64/kernel/x8664_ksyms.c Fri Aug 23 14:19:06 2002
+++ b/arch/x86_64/kernel/x8664_ksyms.c Fri Aug 23 14:19:06 2002
@@ -109,7 +109,6 @@

#ifdef CONFIG_SMP
EXPORT_SYMBOL(cpu_data);
-EXPORT_SYMBOL(kernel_flag);
EXPORT_SYMBOL(smp_num_cpus);
EXPORT_SYMBOL(cpu_online_map);
EXPORT_SYMBOL_NOVERS(__write_lock_failed);
diff -Nru a/include/linux/smp_lock.h b/include/linux/smp_lock.h
--- a/include/linux/smp_lock.h Fri Aug 23 14:19:06 2002
+++ b/include/linux/smp_lock.h Fri Aug 23 14:19:06 2002
@@ -2,21 +2,10 @@
#define __LINUX_SMPLOCK_H

#include <linux/config.h>
-
-#if !defined(CONFIG_SMP) && !defined(CONFIG_PREEMPT)
-
-#define lock_kernel() do { } while(0)
-#define unlock_kernel() do { } while(0)
-#define release_kernel_lock(task) do { } while(0)
-#define reacquire_kernel_lock(task) do { } while(0)
-#define kernel_locked() 1
-
-#else
-
-#include <linux/interrupt.h>
-#include <linux/spinlock.h>
#include <linux/sched.h>
-#include <asm/current.h>
+#include <linux/spinlock.h>
+
+#if CONFIG_SMP || CONFIG_PREEMPT

extern spinlock_t kernel_flag;

@@ -26,23 +15,22 @@
#define put_kernel_lock() spin_unlock(&kernel_flag)

/*
- * Release global kernel lock and global interrupt lock
+ * Release global kernel lock.
*/
-#define release_kernel_lock(task) \
-do { \
- if (unlikely(task->lock_depth >= 0)) \
- put_kernel_lock(); \
-} while (0)
+static inline void release_kernel_lock(struct task_struct *task)
+{
+ if (unlikely(task->lock_depth >= 0))
+ put_kernel_lock();
+}

/*
* Re-acquire the kernel lock
*/
-#define reacquire_kernel_lock(task) \
-do { \
- if (unlikely(task->lock_depth >= 0)) \
- get_kernel_lock(); \
-} while (0)
-
+static inline void reacquire_kernel_lock(struct task_struct *task)
+{
+ if (unlikely(task->lock_depth >= 0))
+ get_kernel_lock();
+}

/*
* Getting the big kernel lock.
@@ -51,22 +39,29 @@
* so we only need to worry about other
* CPU's.
*/
-static __inline__ void lock_kernel(void)
+static inline void lock_kernel(void)
{
int depth = current->lock_depth+1;
- if (!depth)
+ if (likely(!depth))
get_kernel_lock();
current->lock_depth = depth;
}

-static __inline__ void unlock_kernel(void)
+static inline void unlock_kernel(void)
{
- if (current->lock_depth < 0)
+ if (unlikely(current->lock_depth < 0))
BUG();
- if (--current->lock_depth < 0)
+ if (likely(--current->lock_depth < 0))
put_kernel_lock();
}

-#endif /* CONFIG_SMP */
+#else
+
+#define lock_kernel() do { } while(0)
+#define unlock_kernel() do { } while(0)
+#define release_kernel_lock(task) do { } while(0)
+#define reacquire_kernel_lock(task) do { } while(0)
+#define kernel_locked() 1

-#endif
+#endif /* CONFIG_SMP || CONFIG_PREEMPT */
+#endif /* __LINUX_SMPLOCK_H */
diff -Nru a/kernel/ksyms.c b/kernel/ksyms.c
--- a/kernel/ksyms.c Fri Aug 23 14:19:06 2002
+++ b/kernel/ksyms.c Fri Aug 23 14:19:06 2002
@@ -51,6 +51,7 @@
#include <linux/buffer_head.h>
#include <linux/root_dev.h>
#include <linux/percpu.h>
+#include <linux/smp_lock.h>
#include <asm/checksum.h>

#if defined(CONFIG_PROC_FS)
@@ -480,6 +481,9 @@
EXPORT_SYMBOL_GPL(idle_cpu);
#if CONFIG_SMP
EXPORT_SYMBOL_GPL(set_cpus_allowed);
+#endif
+#if CONFIG_SMP || CONFIG_PREEMPT
+EXPORT_SYMBOL(kernel_flag);
#endif
EXPORT_SYMBOL(jiffies);
EXPORT_SYMBOL(jiffies_64);
diff -Nru a/kernel/sched.c b/kernel/sched.c
--- a/kernel/sched.c Fri Aug 23 14:19:06 2002
+++ b/kernel/sched.c Fri Aug 23 14:19:06 2002
@@ -1881,7 +1881,6 @@
}

#if CONFIG_SMP
-
/*
* This is how migration works:
*
@@ -2068,6 +2067,20 @@
return 0;
}

+#endif
+
+#if CONFIG_SMP || CONFIG_PREEMPT
+/*
+ * 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.
+ */
+spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
#endif

extern void init_timervecs(void);
===================================================================

This BitKeeper patch contains the following changesets:
1.509
## Wrapped with gzip_uu ##


begin 664 bkpatch1165
M'XL(`#LH9CT``]U<;6_;1A+^'/X*'@*T=@K+^[[+M`ETB7.MD;0QT@;H`0<(
M2W)EL99('4DY<<O^]YLE94NR2(JB;<`^)Z9)BCN:G6=V9G9FE\_=SYE)7SZ;
M!!/GN?M3DN4OGV7^P,_"))Y&L1DDZ3E\\"E)X(/CU,R38[B]^'I$!MR!#\YT
M'DS<2Y-F+Y_A`;VYDU_-S<MGG][]^/G#/S\YSJM7[MN)CL_-KR9W7[UR\B2]
MU-,P&^I\,DWB09[J.)N97`^"9%;</%H0A`C\XUA2Q$6!!6*R"'"(L6;8A(@P
M)=B*VB29F79:"LAAY'%9<,81<TY</.#(<Q$Y1NJ84!?3EUR\Y.P[1%XBY()<
MAK?EX7Y'A'N$G#?N_7;CK1.X;Z=&QXNY^^;]!Q>:A_"=YR[\=6?)I7$O3!J;
MZ6@\U>=N:,91'.51$@,;+GS?#,Z")#3.>Y<SIJ1SMI*Y<[3GC^,@C9S7.WJH
MTV!RK-/9<<78<6;RQ7P0K/67(>(5E%&$"@G"E\+X&E%N`HIK9=M.4A&*,1=4
M%5QZ#'?C;SX/;HC-MKCC!5%<>$48\E!ZOC">P4R9>N3;"*YXHXAQM;?LX/0B
MNYIEV^(C%`E5^``((YI30DD0AJ2;^&Y377%)&`&=V\7EDLPV9]2C7@%_$2UD
M*.E8Z2#D8T4\&=1S5D?IFAM+R0.-[<A-%DQ,N,T-DR":@OL^4)4D$"BDQJ.M
MW&Q06G$CF&*T(X+3^42WZ!<IJ)1$%A[V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("J;CJHV91</LCQ=@!!SG5V,EN<O[,6A\Y?S#%@[
MN!;D@;U[]-HV&H5FGD_<UZ]<='CH/'LV7^0;-`^_=_X&LXY<X9RR1EYT\-]%
ME-X_-^>FCIMR<>=I>:SAIJ13-3JP-P[+J8=M8(_E-R^_]Q_EM\$7G0B[_/NT
M/-907,0U-$7)1'G<[$VP`%V.\XT._5#VYT2(LHVXQ<?144L;:6?)IW"4SG,S
MS8Q5L\I(;O3T\!G\A(G[E_NW^V423<T!.KQY<+,#K8_6Z56)6EN3.OAW-%I[
M%*Q]R1*8=5GB`$<"G8U#D-'QB]81Y;XX7GMR-/IP^LOGW^VCUEV,?K(?6R>Q
M]&.=`X_-Y[N],<+1%_/9\,_HIOI31\1FD!48?U4PAM2RQ%>S(J3=^+.'>G/+
MT77$L(2G?$E+62`&8UN^W>*6L=WL8Y_Z+J<U]=V5U7X-9D<1:WE+E'>;V'>_
MGWW\]-OHUW___.;CAX.U?H#M6%.%Y4LS.JO"7J_K</R)B:9^NHB'<WTUU]-&
M2@K`@(#"OLI$<4*6^K!W:,D>+G6X.5Y+A3B`0//P6BVJUXS4J\6RJ[WB1:5*
M`PL3<3"`[!K^#CX60EMPK;]!V/&M'YVO.]5OX8/JLRASKSVW"^>YOC!5P+PT
M?_8$;'(67=JPP[_:-+66AGWXEED=N.YI7I*S8H>0&2PZM`[39#X'BA5Y75K*
MT)*`Z"AU2Q$MP#:NFB_L]^>).T^3W`9%4W.N@ZORM4@03>G<G>@L_C:W)'P#
M?,^B\U3G51MM6\V!KN7,OG8)`K'H/':O3#Y8]OXD@<9E&!;%;FR^E(3MA\?.
MM4Q&FP9@-`HTL&GU;:2G0,Z$HR@>P2!U7[DV-A^5UO9S&:._._E^]4XM:!5<
49(O9*VSTV!#B._\#EV7D8JQ+````
`
end
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.059 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site