mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
rk: fiq_debugger: better support cpu cmd, never switch when target cpu is offline
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user