[PATCH] powerpc: Exporting boot_cpuid_phys

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE5506d

3 messages, 3 authors, 2011-07-22 · open the first message on its own page

[PATCH] powerpc: Exporting boot_cpuid_phys

From: Andrew Gabbasov <hidden>
Date: 2011-07-16 13:55:10

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.

Signed-off-by: Andrew Gabbasov <redacted>
---
 arch/powerpc/kernel/setup_32.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 1d2fbc9..3dffce6 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -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];
 

Re: [openmcapi-dev] [PATCH] powerpc: Exporting boot_cpuid_phys

From: Hollis Blanchard <hidden>
Date: 2011-07-22 19:39:59

On 07/16/2011 06:22 AM, Andrew Gabbasov wrote:
quoted hunk
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.

Signed-off-by: Andrew Gabbasov<redacted>
---
  arch/powerpc/kernel/setup_32.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 1d2fbc9..3dffce6 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -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

Re: [openmcapi-dev] [PATCH] powerpc: Exporting boot_cpuid_phys

From: Kumar Gala <hidden>
Date: 2011-07-22 20:28:24

On Jul 22, 2011, at 2:11 PM, Hollis Blanchard wrote:
On 07/16/2011 06:22 AM, Andrew Gabbasov wrote:
quoted
Kernel loadable module can use hard_smp_processor_id() if building =
with SMP
quoted
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
Signed-off-by: Andrew Gabbasov<redacted>
---
 arch/powerpc/kernel/setup_32.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
=20
diff --git a/arch/powerpc/kernel/setup_32.c =
b/arch/powerpc/kernel/setup_32.c
quoted
index 1d2fbc9..3dffce6 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -49,6 +49,7 @@ extern void bootx_init(unsigned long r4, unsigned =
long phys);
quoted
 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=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help