Try both upa-portid and portid properties when finding the module id of a
secondary cpu. Its called portid on UltraSPARCIII machines.
This commit is contained in:
parent
04b64987c3
commit
fd7d3c2e28
@ -235,7 +235,8 @@ cpu_mp_start(void)
|
||||
if (OF_getprop(child, "device_type", buf, sizeof(buf)) <= 0 ||
|
||||
strcmp(buf, "cpu") != 0)
|
||||
continue;
|
||||
if (OF_getprop(child, "upa-portid", &mid, sizeof(mid)) <= 0)
|
||||
if (OF_getprop(child, "upa-portid", &mid, sizeof(mid)) <= 0 &&
|
||||
OF_getprop(child, "portid", &mid, sizeof(mid)) <= 0)
|
||||
panic("cpu_mp_start: can't get module id");
|
||||
if (mid == mp_boot_mid)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user