Merge branch 'linus' into perfcounters/core
[linux-2.6-block.git] / include / linux / sched.h
index 8a8b843908134a467ca11e1179ee7a5df9a356b0..d1857580a1328e202e092715492c0b2cc9de30c6 100644 (file)
@@ -207,7 +207,8 @@ extern unsigned long long time_sync_thresh;
 #define task_is_stopped_or_traced(task)        \
                        ((task->state & (__TASK_STOPPED | __TASK_TRACED)) != 0)
 #define task_contributes_to_load(task) \
-                               ((task->state & TASK_UNINTERRUPTIBLE) != 0)
+                               ((task->state & TASK_UNINTERRUPTIBLE) != 0 && \
+                                (task->flags & PF_FROZEN) == 0)
 
 #define __set_task_state(tsk, state_value)             \
        do { (tsk)->state = (state_value); } while (0)