mirror of
https://xff.cz/git/u-boot/
synced 2025-10-17 07:52:46 +02:00
powerpc/mp: add support for discontiguous cores
Some SOCs have discontiguously-numbered cores, and so we can't determine the valid core numbers via the FRR register any more. We define CPU_TYPE_ENTRY_MASK to specify a discontiguous core mask, and helper functions to process the mask and enumerate over the set of valid cores. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@@ -32,9 +32,8 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
return cmd_usage(cmdtp);
|
||||
|
||||
cpuid = simple_strtoul(argv[1], NULL, 10);
|
||||
if (cpuid >= cpu_numcores()) {
|
||||
printf ("Core num: %lu is out of range[0..%d]\n",
|
||||
cpuid, cpu_numcores() - 1);
|
||||
if (!is_core_valid(cpuid)) {
|
||||
printf ("Core num: %lu is not valid\n", cpuid);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user