Skip to content

Commit 7aeb48b

Browse files
committed
kgdb,mips: remove unused kgdb_cpu_doing_single_step operations
The mips kgdb specific code does not support software or HW single stepping so it should not implement Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com> Acked-by: Ralf Baechle <ralf@linux-mips.org> CC: linux-mips@linux-mips.org
1 parent eac7900 commit 7aeb48b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎arch/mips/kernel/kgdb.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -329,28 +329,22 @@ static struct notifier_block kgdb_notifier = {
329329
};
330330

331331
/*
332-
* Handle the 's' and 'c' commands
332+
* Handle the 'c' command
333333
*/
334334
int kgdb_arch_handle_exception(int vector, int signo, int err_code,
335335
char *remcom_in_buffer, char *remcom_out_buffer,
336336
struct pt_regs *regs)
337337
{
338338
char *ptr;
339339
unsigned long address;
340-
int cpu = smp_processor_id();
341340

342341
switch (remcom_in_buffer[0]) {
343-
case 's':
344342
case 'c':
345343
/* handle the optional parameter */
346344
ptr = &remcom_in_buffer[1];
347345
if (kgdb_hex2long(&ptr, &address))
348346
regs->cp0_epc = address;
349347

350-
atomic_set(&kgdb_cpu_doing_single_step, -1);
351-
if (remcom_in_buffer[0] == 's')
352-
atomic_set(&kgdb_cpu_doing_single_step, cpu);
353-
354348
return 0;
355349
}
356350

0 commit comments

Comments
 (0)