]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: Malta: Allow use of MIPS CPS SMP implementation
authorPaul Burton <paul.burton@imgtec.com>
Wed, 15 Jan 2014 10:31:56 +0000 (10:31 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:07 +0000 (23:09 +0100)
This patch simply attempts to register the MIPS Coherent Processing
System SMP implementation when it is enabled. If registering that fails
for some reason (like the Kconfig option being disabled or a lack of
hardware support) then we fall back to the same SMP implementations as
before.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6365/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/mti-malta/malta-init.c

index d7543f243a83b02632f98ccb10a0e6c194852d5d..38a77e43effb107761381d0d3f9eb05dd49bd136 100644 (file)
@@ -329,6 +329,7 @@ config MIPS_MALTA
        select SYS_SUPPORTS_BIG_ENDIAN
        select SYS_SUPPORTS_LITTLE_ENDIAN
        select SYS_SUPPORTS_MIPS_CMP
+       select SYS_SUPPORTS_MIPS_CPS
        select SYS_SUPPORTS_MULTITHREADING
        select SYS_SUPPORTS_SMARTMIPS
        select SYS_SUPPORTS_ZBOOT
index 1381365b8873c86b831fa9b884ce3b6e812b0ab5..eebb2d1538c6168195998ea25ab188d14644df80 100644 (file)
@@ -285,6 +285,8 @@ mips_pci_controller:
        mips_cm_probe();
        mips_cpc_probe();
 
+       if (!register_cps_smp_ops())
+               return;
        if (!register_cmp_smp_ops())
                return;
        if (!register_vsmp_smp_ops())