diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:24 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:24 +0100 |
commit | 17abecfe651c862cd31b1f9e8ef6cfc29083f00d (patch) | |
tree | 05b990383f2e1fe07f18112f1b716dc3d3781824 /arch/x86/kernel/alternative.c | |
parent | ad8ca495bd3e03e6751fc0c6a6af44018ebb4036 (diff) | |
download | kernel_samsung_crespo-17abecfe651c862cd31b1f9e8ef6cfc29083f00d.zip kernel_samsung_crespo-17abecfe651c862cd31b1f9e8ef6cfc29083f00d.tar.gz kernel_samsung_crespo-17abecfe651c862cd31b1f9e8ef6cfc29083f00d.tar.bz2 |
x86: fix up alternatives with lockdep enabled
An older binutils bug caused us to not fix up alternatives.
This problem involved mutex.c but we dont do lockdep section tricks
there anymore, so this workaround is moot. Keep the printk nevertheless,
just in case ... We can remove that later on.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/alternative.c')
-rw-r--r-- | arch/x86/kernel/alternative.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 318a4f9..45d79ea 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -342,12 +342,13 @@ void alternatives_smp_switch(int smp) #ifdef CONFIG_LOCKDEP /* - * A not yet fixed binutils section handling bug prevents - * alternatives-replacement from working reliably, so turn - * it off: + * Older binutils section handling bug prevented + * alternatives-replacement from working reliably. + * + * If this still occurs then you should see a hang + * or crash shortly after this line: */ - printk("lockdep: not fixing up alternatives.\n"); - return; + printk("lockdep: fixing up alternatives.\n"); #endif if (noreplace_smp || smp_alt_once) |