From 9100f92c1f97cda8ba4ace31a5fab5129ee3bdc2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Thu, 12 Jul 2012 09:30:38 +0800 Subject: [PATCH] rk: fiq_debugger: better support cpu cmd, never switch when target cpu is offline --- arch/arm/common/fiq_debugger.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/common/fiq_debugger.c b/arch/arm/common/fiq_debugger.c index c95af41324a9..9617d374df4b 100644 --- a/arch/arm/common/fiq_debugger.c +++ b/arch/arm/common/fiq_debugger.c @@ -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); -- 2.34.1