]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Netlogic: Merge some of XLR/XLP wakup code
authorJayachandran C <jayachandranc@netlogicmicro.com>
Wed, 16 Nov 2011 00:21:29 +0000 (00:21 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 16 Nov 2011 00:21:29 +0000 (00:21 +0000)
commit6c8872d6dd67ab357482c0e86b56fdae639bfa08
tree79a459a476b1103c5710c0af203561b19a927baa
parent39972c7cf6c3283f844153e6b168bb2d06ab66a2
MIPS: Netlogic: Merge some of XLR/XLP wakup code

Create a common NMI and reset handler in smpboot.S and use this for
both XLR and XLP.  In the earlier code, the woken up CPUs would
busy wait until released, switch this to wakeup by NMI.

The initial wakeup code or XLR and XLP are differ since they are
started from different bootloaders (XLP from u-boot and XLR from
netlogic bootloader). But in both platforms the woken up CPUs wait
and are released by sending an NMI.

Add support for starting XLR and XLP in 1/2/4 threads per core.

Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2970/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
13 files changed:
arch/mips/include/asm/netlogic/common.h
arch/mips/include/asm/netlogic/xlp-hal/xlp.h
arch/mips/include/asm/netlogic/xlr/xlr.h
arch/mips/netlogic/common/Makefile
arch/mips/netlogic/common/smp.c
arch/mips/netlogic/common/smpboot.S [moved from arch/mips/netlogic/xlp/smpboot.S with 67% similarity]
arch/mips/netlogic/xlp/Makefile
arch/mips/netlogic/xlp/setup.c
arch/mips/netlogic/xlp/wakeup.c
arch/mips/netlogic/xlr/Makefile
arch/mips/netlogic/xlr/setup.c
arch/mips/netlogic/xlr/smpboot.S [deleted file]
arch/mips/netlogic/xlr/wakeup.c