85xx: Fix detection of MP cpu spin up
We were looking at the wrong memory offset to determine of a secondary cpu had been spun up or not. Also added a warning message if the all the secondary cpus we expect don't spin up. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
f3e04bdc3f
commit
97b3ecb575
|
@ -154,7 +154,7 @@ static void pq3_mp_up(unsigned long bootpg)
|
||||||
while (timeout) {
|
while (timeout) {
|
||||||
int i;
|
int i;
|
||||||
for (i = 1; i < CONFIG_NR_CPUS; i++) {
|
for (i = 1; i < CONFIG_NR_CPUS; i++) {
|
||||||
if (table[i * NUM_BOOT_ENTRY])
|
if (table[i * NUM_BOOT_ENTRY + BOOT_ENTRY_ADDR_LOWER])
|
||||||
cpu_up_mask |= (1 << i);
|
cpu_up_mask |= (1 << i);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -165,6 +165,10 @@ static void pq3_mp_up(unsigned long bootpg)
|
||||||
timeout--;
|
timeout--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (timeout == 0)
|
||||||
|
printf("CPU up timeout. CPU up mask is %x should be %x\n",
|
||||||
|
cpu_up_mask, up);
|
||||||
|
|
||||||
/* enable time base at the platform */
|
/* enable time base at the platform */
|
||||||
if (whoami)
|
if (whoami)
|
||||||
devdisr |= MPC85xx_DEVDISR_TB1;
|
devdisr |= MPC85xx_DEVDISR_TB1;
|
||||||
|
|
Loading…
Reference in New Issue