MIPS: Netlogic: Move coremask setup to nlm_node_init
This is needed for nlm_node_present(0) to work on uniprocessor compile. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6861/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
f9fab7e4ed
commit
3e468567c2
@@ -54,6 +54,8 @@ void nlm_node_init(int node)
|
||||
struct nlm_soc_info *nodep;
|
||||
|
||||
nodep = nlm_get_node(node);
|
||||
if (node == 0)
|
||||
nodep->coremask = 1; /* node 0, boot cpu */
|
||||
nodep->sysbase = nlm_get_sys_regbase(node);
|
||||
nodep->picbase = nlm_get_pic_regbase(node);
|
||||
nodep->ebase = read_c0_ebase() & (~((1 << 12) - 1));
|
||||
|
Reference in New Issue
Block a user