diff options
Diffstat (limited to 'arch/hexagon/kernel')
| -rw-r--r-- | arch/hexagon/kernel/kgdb.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/hexagon/kernel/kgdb.c b/arch/hexagon/kernel/kgdb.c index 012e0e230ac2..b95d12038a4e 100644 --- a/arch/hexagon/kernel/kgdb.c +++ b/arch/hexagon/kernel/kgdb.c | |||
| @@ -115,33 +115,6 @@ void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc) | |||
| 115 | instruction_pointer(regs) = pc; | 115 | instruction_pointer(regs) = pc; |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | #ifdef CONFIG_SMP | ||
| 119 | |||
| 120 | /** | ||
| 121 | * kgdb_roundup_cpus - Get other CPUs into a holding pattern | ||
| 122 | * | ||
| 123 | * On SMP systems, we need to get the attention of the other CPUs | ||
| 124 | * and get them be in a known state. This should do what is needed | ||
| 125 | * to get the other CPUs to call kgdb_wait(). Note that on some arches, | ||
| 126 | * the NMI approach is not used for rounding up all the CPUs. For example, | ||
| 127 | * in case of MIPS, smp_call_function() is used to roundup CPUs. | ||
| 128 | * | ||
| 129 | * On non-SMP systems, this is not called. | ||
| 130 | */ | ||
| 131 | |||
| 132 | static void hexagon_kgdb_nmi_hook(void *ignored) | ||
| 133 | { | ||
| 134 | kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs()); | ||
| 135 | } | ||
| 136 | |||
| 137 | void kgdb_roundup_cpus(void) | ||
| 138 | { | ||
| 139 | local_irq_enable(); | ||
| 140 | smp_call_function(hexagon_kgdb_nmi_hook, NULL, 0); | ||
| 141 | local_irq_disable(); | ||
| 142 | } | ||
| 143 | #endif | ||
| 144 | |||
| 145 | 118 | ||
| 146 | /* Not yet working */ | 119 | /* Not yet working */ |
| 147 | void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, | 120 | void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, |
