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>
This commit is contained in:
Ingo Molnar 2008-01-30 13:33:24 +01:00
parent ad8ca495bd
commit 17abecfe65

View File

@ -342,12 +342,13 @@ void alternatives_smp_switch(int smp)
#ifdef CONFIG_LOCKDEP #ifdef CONFIG_LOCKDEP
/* /*
* A not yet fixed binutils section handling bug prevents * Older binutils section handling bug prevented
* alternatives-replacement from working reliably, so turn * alternatives-replacement from working reliably.
* it off: *
* If this still occurs then you should see a hang
* or crash shortly after this line:
*/ */
printk("lockdep: not fixing up alternatives.\n"); printk("lockdep: fixing up alternatives.\n");
return;
#endif #endif
if (noreplace_smp || smp_alt_once) if (noreplace_smp || smp_alt_once)