Skip to content

Commit 2e240dd

Browse files
jchandra-brcmralfbaechle
authored andcommitted
MIPS: Netlogic: Use cpumask_scnprintf for wakeup_mask
Use standard function to print cpumask. Also fixup a typo in the same file. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: g@linux-mips.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6909/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 9de10ff commit 2e240dd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • arch/mips/netlogic/common

‎arch/mips/netlogic/common/smp.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void __init nlm_smp_setup(void)
194194
cpumask_scnprintf(buf, ARRAY_SIZE(buf), cpu_possible_mask);
195195
pr_info("Possible CPU mask: %s\n", buf);
196196

197-
/* check with the cores we have worken up */
197+
/* check with the cores we have woken up */
198198
for (ncore = 0, i = 0; i < NLM_NR_NODES; i++)
199199
ncore += hweight32(nlm_get_node(i)->coremask);
200200

@@ -209,6 +209,7 @@ static int nlm_parse_cpumask(cpumask_t *wakeup_mask)
209209
{
210210
uint32_t core0_thr_mask, core_thr_mask;
211211
int threadmode, i, j;
212+
char buf[64];
212213

213214
core0_thr_mask = 0;
214215
for (i = 0; i < NLM_THREADS_PER_CORE; i++)
@@ -243,8 +244,8 @@ static int nlm_parse_cpumask(cpumask_t *wakeup_mask)
243244
return threadmode;
244245

245246
unsupp:
246-
panic("Unsupported CPU mask %lx",
247-
(unsigned long)cpumask_bits(wakeup_mask)[0]);
247+
cpumask_scnprintf(buf, ARRAY_SIZE(buf), wakeup_mask);
248+
panic("Unsupported CPU mask %s", buf);
248249
return 0;
249250
}
250251

0 commit comments

Comments
 (0)