powerpc: Exporting boot_cpuid_phys
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
@@ -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 ];
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_physsymbol (which is whathard_smp_processor_id()macro resolves to in non-SMP configuration) must be exported.Signed-off-by Andrew Gabbasov<[email protected]>--- arch/powerpc/kernel/setup_32.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)arch/powerpc/kernel/setup_32.c +0
-0
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
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_physsymbol (which is whathard_smp_processor_id()macro resolves to in non-SMP configuration) must be exported.
=20Signed-off-by Andrew Gabbasov<[email protected]>--- 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
-0int 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=