Skip to contentSkip to conversation

move smp_hw_index to 32-bit code

PATCH New Nathan Lynch 1 participant 1 message Dec 11, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 move smp_hw_index to 32-bit code

smp_hw_index isn't used on 64-bit, so move it from smp.c to setup_32.c.

---
 arch/powerpc/kernel/setup_32.c |    2 ++
 arch/powerpc/kernel/smp.c      |    1 -
 2 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/kernel/setup_32.c +2 -0
index c1a2762..2e9fcf0 100644
@@ -49,6 +49,8 @@ int boot_cpuid;
 EXPORT_SYMBOL_GPL(boot_cpuid);
 int boot_cpuid_phys;
 
+int smp_hw_index[NR_CPUS];
+
 unsigned long ISA_DMA_THRESHOLD;
 unsigned int DMA_MODE_READ;
 unsigned int DMA_MODE_WRITE;
arch/powerpc/kernel/smp.c +0 -1
index ff9f701..5af6ac1 100644
@@ -57,7 +57,6 @@
 #define DBG(fmt...)
 #endif
 
-int smp_hw_index[NR_CPUS];
 struct thread_info *secondary_ti;
 
 cpumask_t cpu_possible_map = CPU_MASK_NONE;
Signature · 1 line
1.5.5