Skip to content
Snippets Groups Projects
Commit 17abecfe authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ad8ca495
No related branches found
No related tags found
No related merge requests found
...@@ -342,12 +342,13 @@ void alternatives_smp_switch(int smp) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment