Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346859
b: refs/heads/master
c: 1439d03
h: refs/heads/master
i:
  346857: bb26f7d
  346855: 950425a
v: v3
  • Loading branch information
Sonic Zhang authored and Bob Liu committed Dec 13, 2012
1 parent 5008090 commit 762dbe6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1a1d52508bd29c68a7f77412c0a9cf5e1b51154
refs/heads/master: 1439d030b9032261f1111a2dd16b9a8ca11112ef
13 changes: 11 additions & 2 deletions trunk/arch/blackfin/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,19 +329,28 @@ static void bfin_disable_hw_debug(struct pt_regs *regs)
}

#ifdef CONFIG_SMP
extern void generic_exec_single(int cpu, struct call_single_data *data, int wait);
static struct call_single_data kgdb_smp_ipi_data[NR_CPUS];

void kgdb_passive_cpu_callback(void *info)
{
kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs());
}

void kgdb_roundup_cpus(unsigned long flags)
{
smp_call_function(kgdb_passive_cpu_callback, NULL, 0);
unsigned int cpu;

for (cpu = cpumask_first(cpu_online_mask); cpu < nr_cpu_ids;
cpu = cpumask_next(cpu, cpu_online_mask)) {
kgdb_smp_ipi_data[cpu].func = kgdb_passive_cpu_callback;
generic_exec_single(cpu, &kgdb_smp_ipi_data[cpu], 0);
}
}

void kgdb_roundup_cpu(int cpu, unsigned long flags)
{
smp_call_function_single(cpu, kgdb_passive_cpu_callback, NULL, 0);
generic_exec_single(cpu, &kgdb_smp_ipi_data[cpu], 0);
}
#endif

Expand Down

0 comments on commit 762dbe6

Please sign in to comment.