Commit e9c227f9 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Yosemite: Fix warning.

arch/mips/pmc-sierra/yosemite/smp.c: In function 'titan_mailbox_irq':
arch/mips/pmc-sierra/yosemite/smp.c:112: warning: 'status' may be used uninitialized in this function
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent e0a725a7
...@@ -111,18 +111,23 @@ void titan_mailbox_irq(void) ...@@ -111,18 +111,23 @@ void titan_mailbox_irq(void)
int cpu = smp_processor_id(); int cpu = smp_processor_id();
unsigned long status; unsigned long status;
if (cpu == 0) { switch (cpu) {
case 0:
status = OCD_READ(RM9000x2_OCD_INTP0STATUS3); status = OCD_READ(RM9000x2_OCD_INTP0STATUS3);
OCD_WRITE(RM9000x2_OCD_INTP0CLEAR3, status); OCD_WRITE(RM9000x2_OCD_INTP0CLEAR3, status);
}
if (cpu == 1) { if (status & 0x2)
smp_call_function_interrupt();
break;
case 1:
status = OCD_READ(RM9000x2_OCD_INTP1STATUS3); status = OCD_READ(RM9000x2_OCD_INTP1STATUS3);
OCD_WRITE(RM9000x2_OCD_INTP1CLEAR3, status); OCD_WRITE(RM9000x2_OCD_INTP1CLEAR3, status);
}
if (status & 0x2) if (status & 0x2)
smp_call_function_interrupt(); smp_call_function_interrupt();
break;
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment