Skip to content

Commit 0521dbb

Browse files
Shrikanth Hegdemaddy-kerneldev
authored andcommitted
powerpc/xive: Add warning if target CPU not found
Add a warn_once to warn if the CPU target is not found. This could help to find about any such usecase. This is a very rare case, which either means mask was empty or atomic update failed for all online CPUs. So it is worth printing that path for potential fix. Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com> Reviewed-by: Yury Norov <ynorov@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260427044715.559137-5-sshegde@linux.ibm.com
1 parent 1f8986f commit 0521dbb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/powerpc/sysdev/xive/common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ static int xive_find_target_in_mask(const struct cpumask *mask,
564564
return cpu;
565565
}
566566

567+
WARN_ONCE(1, "target CPU not found in mask: %*pbl\n", cpumask_pr_args(mask));
567568
return -1;
568569
}
569570

0 commit comments

Comments
 (0)