fiq_debugger: Switch current cpu when the former cpu is offline

Change-Id: Ie1a5fe5c3496e5182f0f9aaab336a4d0ff683dfa
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
Huibin Hong
2017-01-19 10:12:23 +08:00
committed by Tao Huang
parent aa9c50133f
commit a8ac8469aa

View File

@@ -646,7 +646,7 @@ static bool fiq_debugger_handle_uart_interrupt(struct fiq_debugger_state *state,
int count = 0;
bool signal_helper = false;
if (this_cpu != state->current_cpu) {
if ((this_cpu != state->current_cpu) && (cpu_online(state->current_cpu))) {
if (state->in_fiq)
return false;
@@ -664,6 +664,9 @@ static bool fiq_debugger_handle_uart_interrupt(struct fiq_debugger_state *state,
return false;
}
if (this_cpu != state->current_cpu)
state->current_cpu = this_cpu;
state->in_fiq = true;
while ((c = fiq_debugger_getc(state)) != FIQ_DEBUGGER_NO_CHAR) {