Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86602
b: refs/heads/master
c: 7be2a03
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Feb 29, 2008
1 parent 66d50da commit 843fcac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2232c2d8e0a6a31061dec311f3d1cf7624bc14f1
refs/heads/master: 7be2a03e3174cee3a3cdcdf17db357470f51caff
13 changes: 7 additions & 6 deletions trunk/kernel/softlockup.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,26 +216,27 @@ static int watchdog(void *__bind_cpu)
/* initialize timestamp */
touch_softlockup_watchdog();

set_current_state(TASK_INTERRUPTIBLE);
/*
* Run briefly once per second to reset the softlockup timestamp.
* If this gets delayed for more than 60 seconds then the
* debug-printout triggers in softlockup_tick().
*/
while (!kthread_should_stop()) {
set_current_state(TASK_INTERRUPTIBLE);
touch_softlockup_watchdog();
schedule();

if (kthread_should_stop())
break;

if (this_cpu != check_cpu)
continue;

if (sysctl_hung_task_timeout_secs)
check_hung_uninterruptible_tasks(this_cpu);
if (this_cpu == check_cpu) {
if (sysctl_hung_task_timeout_secs)
check_hung_uninterruptible_tasks(this_cpu);
}

set_current_state(TASK_INTERRUPTIBLE);
}
__set_current_state(TASK_RUNNING);

return 0;
}
Expand Down

0 comments on commit 843fcac

Please sign in to comment.