]> git.baikalelectronics.ru Git - kernel.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, 7 Dec 2011 22:04:56 +0000 (22:04 +0000)
commit1e453ed76b170ea60f366b44c90b04e8d52a5863
treef73145e09c53606716266577eef5e14262129ed9
parentdf9507641fdfff6b1926f706f483f613a0b4b3c0
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>
14 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 [new file with mode: 0644]
arch/mips/netlogic/xlp/Makefile
arch/mips/netlogic/xlp/setup.c
arch/mips/netlogic/xlp/smpboot.S [deleted file]
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