MIPS: Netlogic: Add cpu to node mapping for XLP9XX
XLP9XX has 20 cores per node, opposed to 8 on earlier XLP8XX. Update code that calculates node id from cpu id to handle this. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6283/
This commit is contained in:

committed by
Ralf Baechle

parent
e7aa6c66b0
commit
98d4884ca5
@@ -51,6 +51,7 @@ uint64_t nlm_io_base;
|
||||
struct nlm_soc_info nlm_nodes[NLM_NR_NODES];
|
||||
cpumask_t nlm_cpumask = CPU_MASK_CPU0;
|
||||
unsigned int nlm_threads_per_core;
|
||||
unsigned int xlp_cores_per_node;
|
||||
|
||||
static void nlm_linux_exit(void)
|
||||
{
|
||||
@@ -154,6 +155,10 @@ void __init prom_init(void)
|
||||
void *reset_vec;
|
||||
|
||||
nlm_io_base = CKSEG1ADDR(XLP_DEFAULT_IO_BASE);
|
||||
if (cpu_is_xlp9xx())
|
||||
xlp_cores_per_node = 32;
|
||||
else
|
||||
xlp_cores_per_node = 8;
|
||||
nlm_init_boot_cpu();
|
||||
xlp_mmu_init();
|
||||
nlm_node_init(0);
|
||||
|
Reference in New Issue
Block a user