diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 13:54:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 13:54:27 -0500 |
commit | 4351654e3ddf86a04966163dce4def586303e5cc (patch) | |
tree | eeb683133e78fbe522c80d0895f94ce4ca699a23 /arch/blackfin/kernel | |
parent | 3d9de1909b339f967f1b37367df233a0dcfc10cf (diff) | |
parent | 86794b43569c9b8936dff2e8eed503393379af6e (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo/blackfin
Pull blackfin update from Bob Liu.
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lliubbo/blackfin:
blackfin: SEC: clean up SEC interrupt initialization
blackfin: kgdb: call generic_exec_single() directly
blackfin: anomaly: add anomaly 16000030 for bf5xx
Blackfin: dpmc: use module_platform_driver macro
Blackfin: remove unused is_in_rom()
Blackfin: remove unnecessary prototype for kobjsize()
Blackfin: twi: Add missing __iomem annotation
Blackfin: Annotate strnlen_user and strlen_user 'src' parameter with __user
Blackfin: Annotate clear_user 'to' parameter with __user
Blackfin: Add missing __user annotations to put_user
Blackfin: Annotate strncpy_from_user src parameter with __user
blackfin: Use Kbuild infrastructure for kvm_para.h
UAPI: (Scripted) Disintegrate arch/blackfin/include/asm
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/kgdb.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/kgdb.c b/arch/blackfin/kernel/kgdb.c index 9b80b152435e..b882ce22c347 100644 --- a/arch/blackfin/kernel/kgdb.c +++ b/arch/blackfin/kernel/kgdb.c | |||
@@ -329,6 +329,9 @@ static void bfin_disable_hw_debug(struct pt_regs *regs) | |||
329 | } | 329 | } |
330 | 330 | ||
331 | #ifdef CONFIG_SMP | 331 | #ifdef CONFIG_SMP |
332 | extern void generic_exec_single(int cpu, struct call_single_data *data, int wait); | ||
333 | static struct call_single_data kgdb_smp_ipi_data[NR_CPUS]; | ||
334 | |||
332 | void kgdb_passive_cpu_callback(void *info) | 335 | void kgdb_passive_cpu_callback(void *info) |
333 | { | 336 | { |
334 | kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs()); | 337 | kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs()); |
@@ -336,12 +339,18 @@ void kgdb_passive_cpu_callback(void *info) | |||
336 | 339 | ||
337 | void kgdb_roundup_cpus(unsigned long flags) | 340 | void kgdb_roundup_cpus(unsigned long flags) |
338 | { | 341 | { |
339 | smp_call_function(kgdb_passive_cpu_callback, NULL, 0); | 342 | unsigned int cpu; |
343 | |||
344 | for (cpu = cpumask_first(cpu_online_mask); cpu < nr_cpu_ids; | ||
345 | cpu = cpumask_next(cpu, cpu_online_mask)) { | ||
346 | kgdb_smp_ipi_data[cpu].func = kgdb_passive_cpu_callback; | ||
347 | generic_exec_single(cpu, &kgdb_smp_ipi_data[cpu], 0); | ||
348 | } | ||
340 | } | 349 | } |
341 | 350 | ||
342 | void kgdb_roundup_cpu(int cpu, unsigned long flags) | 351 | void kgdb_roundup_cpu(int cpu, unsigned long flags) |
343 | { | 352 | { |
344 | smp_call_function_single(cpu, kgdb_passive_cpu_callback, NULL, 0); | 353 | generic_exec_single(cpu, &kgdb_smp_ipi_data[cpu], 0); |
345 | } | 354 | } |
346 | #endif | 355 | #endif |
347 | 356 | ||