Commit cc1e0f4f7ad95a9eb81e1904cb16068af226180d
1 parent
e85ceae910
Exists in
master
and in
4 other branches
kgdb: call touch_softlockup_watchdog on resume
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>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
kernel/kgdb.c
... | ... | @@ -590,6 +590,7 @@ |
590 | 590 | |
591 | 591 | /* Signal the primary CPU that we are done: */ |
592 | 592 | atomic_set(&cpu_in_kgdb[cpu], 0); |
593 | + touch_softlockup_watchdog(); | |
593 | 594 | clocksource_touch_watchdog(); |
594 | 595 | local_irq_restore(flags); |
595 | 596 | } |
... | ... | @@ -1432,6 +1433,7 @@ |
1432 | 1433 | atomic_read(&kgdb_cpu_doing_single_step) != cpu) { |
1433 | 1434 | |
1434 | 1435 | atomic_set(&kgdb_active, -1); |
1436 | + touch_softlockup_watchdog(); | |
1435 | 1437 | clocksource_touch_watchdog(); |
1436 | 1438 | local_irq_restore(flags); |
1437 | 1439 | |
... | ... | @@ -1524,6 +1526,7 @@ |
1524 | 1526 | kgdb_restore: |
1525 | 1527 | /* Free kgdb_active */ |
1526 | 1528 | atomic_set(&kgdb_active, -1); |
1529 | + touch_softlockup_watchdog(); | |
1527 | 1530 | clocksource_touch_watchdog(); |
1528 | 1531 | local_irq_restore(flags); |
1529 | 1532 |