diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/i386/kernel/topology.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/i386/kernel/topology.c')
| -rw-r--r-- | arch/i386/kernel/topology.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/i386/kernel/topology.c b/arch/i386/kernel/topology.c index 67a0e1baa28b..296355292c7c 100644 --- a/arch/i386/kernel/topology.c +++ b/arch/i386/kernel/topology.c | |||
| @@ -41,6 +41,15 @@ int arch_register_cpu(int num){ | |||
| 41 | parent = &node_devices[node].node; | 41 | parent = &node_devices[node].node; |
| 42 | #endif /* CONFIG_NUMA */ | 42 | #endif /* CONFIG_NUMA */ |
| 43 | 43 | ||
| 44 | /* | ||
| 45 | * CPU0 cannot be offlined due to several | ||
| 46 | * restrictions and assumptions in kernel. This basically | ||
| 47 | * doesnt add a control file, one cannot attempt to offline | ||
| 48 | * BSP. | ||
| 49 | */ | ||
| 50 | if (!num) | ||
| 51 | cpu_devices[num].cpu.no_control = 1; | ||
| 52 | |||
| 44 | return register_cpu(&cpu_devices[num].cpu, num, parent); | 53 | return register_cpu(&cpu_devices[num].cpu, num, parent); |
| 45 | } | 54 | } |
| 46 | 55 | ||
