The meaning of state_filter == 0 got messed up somehow.
Signed-off-by: Jeff Dike <[email protected]>
Index: linux-2.6.17/kernel/sched.c
===================================================================
--- linux-2.6.17.orig/kernel/sched.c
+++ linux-2.6.17/kernel/sched.c
@@ -4825,7 +4825,7 @@ void show_state_filter(unsigned long sta
* console might take alot of time:
*/
touch_nmi_watchdog();
- if (state_filter && (p->state & state_filter))
+ if (!state_filter || (p->state & state_filter))
show_task(p);
} while_each_thread(g, p);