Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142791
b: refs/heads/master
c: cf2592f
h: refs/heads/master
i:
  142789: bb05d79
  142787: 8b75c3d
  142783: b74b921
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Feb 11, 2009
1 parent 866af4d commit a6dc75d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 17406b82d621930cca8ccc1272cdac9a7dae8e40
refs/heads/master: cf2592f59c0e8ed4308adbdb2e0a88655379d579
8 changes: 7 additions & 1 deletion trunk/kernel/hung_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
{
unsigned long switch_count = t->nvcsw + t->nivcsw;

if (t->flags & PF_FROZEN)
/*
* Ensure the task is not frozen.
* Also, when a freshly created task is scheduled once, changes
* its state to TASK_UNINTERRUPTIBLE without having ever been
* switched out once, it musn't be checked.
*/
if (unlikely(t->flags & PF_FROZEN || !switch_count))
return;

if (switch_count != t->last_switch_count) {
Expand Down

0 comments on commit a6dc75d

Please sign in to comment.