mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
rk: fiq_debugger: support cpu switch when fiq is used
This commit is contained in:
@@ -587,6 +587,17 @@ static void switch_cpu(struct fiq_debugger_state *state, int cpu)
|
||||
{
|
||||
if (!debug_have_fiq(state))
|
||||
smp_call_function_single(cpu, take_affinity, state, false);
|
||||
#ifdef CONFIG_PLAT_RK
|
||||
else {
|
||||
struct cpumask cpumask;
|
||||
|
||||
cpumask_clear(&cpumask);
|
||||
cpumask_set_cpu(cpu, &cpumask);
|
||||
|
||||
irq_set_affinity(state->fiq, &cpumask);
|
||||
irq_set_affinity(state->uart_irq, &cpumask);
|
||||
}
|
||||
#endif
|
||||
state->current_cpu = cpu;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user