]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
powerpc: Exporting boot_cpuid_phys
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Sat, 16 Jul 2011 03:22:13 +0000 (03:22 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 19 Jul 2011 05:13:34 +0000 (15:13 +1000)
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 <andrew_gabbasov@mentor.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/setup_32.c

index 1d2fbc905303401c50bbd410da0118338cb05eb7..3dffce673c1f54cb953e3caf5b15583ddfbc430f 100644 (file)
@@ -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];