linux-sg2042/arch/powerpc/platforms/powernv
Michael Ellerman 3eb906c6b6 powerpc: Make cpu_to_chip_id() available when SMP=n
Up until now we have only used cpu_to_chip_id() in the topology code,
which is only used on SMP builds. However my recent commit a4da0d5
"Implement arch_get_random_long/int() for powernv" added a usage when
SMP=n, breaking the build.

Move cpu_to_chip_id() into prom.c so it is available for SMP=n builds.

We would move the extern to prom.h, but that breaks the include in
topology.h. Instead we leave it in smp.h, but move it out of the
CONFIG_SMP #ifdef. We also need to include asm/smp.h in rng.c, because
the linux version skips asm/smp.h on UP. What a mess.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-11-21 10:33:44 +11:00
..
Kconfig powerpc/powernv: Add scom support under OPALv3 2013-10-11 16:53:45 +11:00
Makefile powerpc/powernv: Code update interface 2013-10-30 16:12:02 +11:00
eeh-ioda.c powerpc/eeh: Output PHB3 diag-data 2013-10-11 16:54:12 +11:00
eeh-powernv.c powerpc/powernv: Enable EEH for PHB3 2013-10-11 16:53:56 +11:00
opal-flash.c powerpc/powernv: Code update interface 2013-10-30 16:12:02 +11:00
opal-lpc.c powerpc: add explicit OF includes 2013-10-09 20:04:11 -05:00
opal-nvram.c powerpc/powernv: Make OPAL NVRAM device tree accesses endian safe 2013-10-11 16:48:47 +11:00
opal-rtc.c powerpc/powernv: More little endian issues in OPAL RTC driver 2013-10-11 16:48:51 +11:00
opal-takeover.S powerpc: Merge STK_REG/PARAM/FRAMESIZE 2012-07-10 19:18:03 +10:00
opal-wrappers.S powerpc/powernv: Code update interface 2013-10-30 16:12:02 +11:00
opal-xscom.c powerpc/powernv: Add support for indirect XSCOM via debugfs 2013-11-06 14:13:51 +11:00
opal.c DeviceTree updates for 3.13. This is a bit larger pull request than 2013-11-12 16:52:17 +09:00
pci-ioda.c powerpc/powernv: Reserve the correct PE number 2013-11-06 14:13:52 +11:00
pci-p5ioc2.c powerpc: Little endian fix for arch/powerpc/platforms/powernv/pci-p5ioc2.c 2013-10-11 16:48:43 +11:00
pci.c powerpc/powernv: Reserve the correct PE number 2013-11-06 14:13:52 +11:00
pci.h powerpc/powernv: Reserve the correct PE number 2013-11-06 14:13:52 +11:00
powernv.h powerpc/powernv: Add PIO accessors for Power8 LPC bus 2013-08-14 14:58:08 +10:00
rng.c powerpc: Make cpu_to_chip_id() available when SMP=n 2013-11-21 10:33:44 +11:00
setup.c powerpc: add explicit OF includes 2013-10-09 20:04:11 -05:00
smp.c powerpc: Convert platforms to smp_generic_cpu_bootable 2013-08-14 14:56:57 +10:00