rk: fiq_debugger: better support cpu cmd, never switch when target cpu is offline

This commit is contained in:
黄涛
2012-07-12 09:30:38 +08:00
parent da66e13f0c
commit 9100f92c1f

View File

@@ -630,6 +630,11 @@ static void switch_cpu(struct fiq_debugger_state *state, int cpu)
else {
struct cpumask cpumask;
if (!cpu_online(cpu)) {
debug_printf(state, "cpu %d offline\n", cpu);
return;
}
cpumask_clear(&cpumask);
cpumask_set_cpu(cpu, &cpumask);