Skip to contentSkip to conversation

powerpc: Exporting boot_cpuid_phys

PATCH In review Andrew Gabbasov 3 participants 3 messages Jul 16, 2011 – Jul 22, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Exporting boot_cpuid_phys

Kernel loadable module can use hard_smp_processor_id() if building with SMP kernel. In order to make it work for UP kernels too, boot_cpuid_phys symbol (which is what hard_smp_processor_id() macro resolves to in non-SMP configuration) must be exported.

---
 arch/powerpc/kernel/setup_32.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/kernel/setup_32.c +1 -0
index 1d2fbc9..3dffce6 100644
@@ -49,6 +49,7 @@ extern void bootx_init(unsigned long r4, unsigned long phys);
 int boot_cpuid = -1;
 EXPORT_SYMBOL_GPL(boot_cpuid);
 int boot_cpuid_phys;
+EXPORT_SYMBOL_GPL(boot_cpuid_phys);
 
 int smp_hw_index[NR_CPUS];
 
#1 lore raw
Quoted 15 lines · Andrew Gabbasov

Kernel loadable module can use hard_smp_processor_id() if building with SMP kernel. In order to make it work for UP kernels too, boot_cpuid_phys symbol (which is what hard_smp_processor_id() macro resolves to in non-SMP configuration) must be exported.

---
  arch/powerpc/kernel/setup_32.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/kernel/setup_32.c +0 -0
index 1d2fbc9..3dffce6 100644

arch/powerpc/kernel/setup_32.c extern void bootx_init(unsigned long r4, unsigned long phys); · line 54

Quoted 6 lines
arch/powerpc/kernel/setup_32.c +1 -0
@@ -49,6 +49,7 @@ extern void bootx_init(unsigned long r4, unsigned long phys);
  int boot_cpuid = -1;
  EXPORT_SYMBOL_GPL(boot_cpuid);
  int boot_cpuid_phys;
+EXPORT_SYMBOL_GPL(boot_cpuid_phys);
 
  int smp_hw_index[NR_CPUS];

Ben, ping?

Hollis Blanchard
Mentor Graphics, Embedded Systems Division

#2 lore raw
Quoted 2 lines · Hollis Blanchard
Quoted 1 line · Andrew Gabbasov

Kernel loadable module can use hard_smp_processor_id() if building =

with SMP

Quoted 10 lines

=

Quoted 10 lines

kernel. In order to make it work for UP kernels too, boot_cpuid_phys symbol (which is what hard_smp_processor_id() macro resolves to in non-SMP configuration) must be exported.
=20

---
 arch/powerpc/kernel/setup_32.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

=20

= renamed from arch/powerpc/kernel/setup_32.c +0 -0

b/arch/powerpc/kernel/setup_32.c

Quoted 4 lines

arch/powerpc/kernel/setup_32.c extern void bootx_init(unsigned long r4, unsigned =

Quoted 4 lines

index 1d2fbc9..3dffce6 100644

arch/powerpc/kernel/setup_32.c +0 -0
@@ -49,6 +49,7 @@ extern void bootx_init(unsigned long r4, unsigned =

long phys);

Quoted 8 lines
Quoted 6 lines
arch/powerpc/kernel/setup_32.c +1 -0
 int boot_cpuid =3D -1;
 EXPORT_SYMBOL_GPL(boot_cpuid);
 int boot_cpuid_phys;
+EXPORT_SYMBOL_GPL(boot_cpuid_phys);

=20
int smp_hw_index[NR_CPUS];

=20
Ben, ping?

Its in Benh's next branch.

- k=