]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Netlogic: Move cores per node out of multi-node.h
authorJayachandran C <jchandra@broadcom.com>
Wed, 7 Jan 2015 11:28:30 +0000 (16:58 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:50 +0000 (17:21 +0200)
commite8d73f3edbeb4a44201be64a097728ac3c0c224d
tree702e2d39bc32f37a7d953243f876e19c89ffae13
parent4ca3a5057b9424c239602f9986b9792a7b716f05
MIPS: Netlogic: Move cores per node out of multi-node.h

Use the current_cpu_data package field to get the node of the current CPU.

This allows us to remove xlp_cores_per_node and move nlm_threads_per_node()
and nlm_cores_per_node() to netlogic/common.h, which simplifies code.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8889/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-netlogic/multi-node.h
arch/mips/include/asm/netlogic/common.h
arch/mips/netlogic/common/irq.c
arch/mips/netlogic/common/smp.c
arch/mips/netlogic/xlp/setup.c
arch/mips/netlogic/xlp/wakeup.c