Skip to content

Commit

Permalink
kgdb: call touch_softlockup_watchdog on resume
Browse files Browse the repository at this point in the history
The softlockup watchdog needs to be touched when resuming the from the
kgdb stopped state to avoid the printk that a CPU is stuck if the
debugger was active for longer than the softlockup threshold.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
  • Loading branch information
jwessel committed Oct 6, 2008
1 parent e85ceae commit cc1e0f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ static void kgdb_wait(struct pt_regs *regs)

/* Signal the primary CPU that we are done: */
atomic_set(&cpu_in_kgdb[cpu], 0);
touch_softlockup_watchdog();
clocksource_touch_watchdog();
local_irq_restore(flags);
}
Expand Down Expand Up @@ -1432,6 +1433,7 @@ kgdb_handle_exception(int evector, int signo, int ecode, struct pt_regs *regs)
atomic_read(&kgdb_cpu_doing_single_step) != cpu) {

atomic_set(&kgdb_active, -1);
touch_softlockup_watchdog();
clocksource_touch_watchdog();
local_irq_restore(flags);

Expand Down Expand Up @@ -1524,6 +1526,7 @@ kgdb_handle_exception(int evector, int signo, int ecode, struct pt_regs *regs)
kgdb_restore:
/* Free kgdb_active */
atomic_set(&kgdb_active, -1);
touch_softlockup_watchdog();
clocksource_touch_watchdog();
local_irq_restore(flags);

Expand Down

0 comments on commit cc1e0f4

Please sign in to comment.