diff options
Diffstat (limited to 'arch/i386/kernel/alternative.c')
| -rw-r--r-- | arch/i386/kernel/alternative.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/i386/kernel/alternative.c b/arch/i386/kernel/alternative.c index 7b421b3a053e..28ab80649764 100644 --- a/arch/i386/kernel/alternative.c +++ b/arch/i386/kernel/alternative.c | |||
| @@ -303,6 +303,16 @@ void alternatives_smp_switch(int smp) | |||
| 303 | struct smp_alt_module *mod; | 303 | struct smp_alt_module *mod; |
| 304 | unsigned long flags; | 304 | unsigned long flags; |
| 305 | 305 | ||
| 306 | #ifdef CONFIG_LOCKDEP | ||
| 307 | /* | ||
| 308 | * A not yet fixed binutils section handling bug prevents | ||
| 309 | * alternatives-replacement from working reliably, so turn | ||
| 310 | * it off: | ||
| 311 | */ | ||
| 312 | printk("lockdep: not fixing up alternatives.\n"); | ||
| 313 | return; | ||
| 314 | #endif | ||
| 315 | |||
| 306 | if (no_replacement || smp_alt_once) | 316 | if (no_replacement || smp_alt_once) |
| 307 | return; | 317 | return; |
| 308 | BUG_ON(!smp && (num_online_cpus() > 1)); | 318 | BUG_ON(!smp && (num_online_cpus() > 1)); |
