diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2014-07-29 10:41:10 +0200 |
---|---|---|
committer | Steven Miao <realmz6@gmail.com> | 2015-04-23 15:34:26 +0200 |
commit | a0f4207d03b40eee6338b51288849965ac2b94e2 (patch) | |
tree | 77af05da8984f6e69b9e77dce5c66815ec482919 | |
parent | arch: blackfin: kernel: setup.c: Cleaning up missing null-terminate in conjun... (diff) | |
download | linux-a0f4207d03b40eee6338b51288849965ac2b94e2.tar.xz linux-a0f4207d03b40eee6338b51288849965ac2b94e2.zip |
bug[220] kgdb: change the smp cross core function entry
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
-rw-r--r-- | arch/blackfin/kernel/kgdb.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/blackfin/kernel/kgdb.c b/arch/blackfin/kernel/kgdb.c index fa53faeeb0e9..48dacde30550 100644 --- a/arch/blackfin/kernel/kgdb.c +++ b/arch/blackfin/kernel/kgdb.c @@ -330,9 +330,6 @@ 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()); @@ -343,15 +340,14 @@ void kgdb_roundup_cpus(unsigned long flags) 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); - } + cpu = cpumask_next(cpu, cpu_online_mask)) + smp_call_function_single(cpu, kgdb_passive_cpu_callback, + NULL, 0); } void kgdb_roundup_cpu(int cpu, unsigned long flags) { - generic_exec_single(cpu, &kgdb_smp_ipi_data[cpu], 0); + smp_call_function_single(cpu, kgdb_passive_cpu_callback, NULL, 0); } #endif |