Skip to content

Commit 3e46856

Browse files
jchandra-brcmralfbaechle
authored andcommitted
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>
1 parent f9fab7e commit 3e46856

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎arch/mips/netlogic/xlp/nlm_hal.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ void nlm_node_init(int node)
5454
struct nlm_soc_info *nodep;
5555

5656
nodep = nlm_get_node(node);
57+
if (node == 0)
58+
nodep->coremask = 1; /* node 0, boot cpu */
5759
nodep->sysbase = nlm_get_sys_regbase(node);
5860
nodep->picbase = nlm_get_pic_regbase(node);
5961
nodep->ebase = read_c0_ebase() & (~((1 << 12) - 1));

‎arch/mips/netlogic/xlp/wakeup.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ static void xlp_enable_secondary_cores(const cpumask_t *wakeup_mask)
159159
*/
160160
syscoremask = (1 << hweight32(~fusemask & mask)) - 1;
161161

162-
/* The boot cpu */
163-
if (n == 0)
164-
nodep->coremask = 1;
165-
166162
pr_info("Node %d - SYS/FUSE coremask %x\n", n, syscoremask);
167163
for (core = 0; core < nlm_cores_per_node(); core++) {
168164
/* we will be on node 0 core 0 */

0 commit comments

Comments
 (0)