diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-05 13:13:03 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-05 13:13:03 -0400 |
| commit | 5e66dd6d66ffe758b39b6dcadf2330753ee1159b (patch) | |
| tree | a72cdcff4448e4af9425cc213ddf56ab23e697fe /arch/i386/kernel/alternative.c | |
| parent | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (diff) | |
| parent | ca78f6baca863afe2e6a244a0fe94b3a70211d46 (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
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)); |
