Fix wrong order of process status. It's
#define TASK_RUNNING 0
#define TASK_INTERRUPTIBLE 1
#define TASK_UNINTERRUPTIBLE 2
#define TASK_STOPPED 4
#define TASK_ZOMBIE 8
#define TASK_DEAD 16
but SysRQ printout routines switch stopped and zombie around.
So, for one more time, here's another mailing of the same patch to fix
this brokenness. In addition, fix the wrong comment in fs/proc/array.c
"R (running)", /* 0 */
"S (sleeping)", /* 1 */
"D (disk sleep)", /* 2 */
- "T (stopped)", /* 8 */
- "Z (zombie)", /* 4 */
+ "T (stopped)", /* 4 */
+ "Z (zombie)", /* 8 */
"X (dead)" /* 16 */
};
unsigned long free = 0;
task_t *relative;
int state;
- static const char * stat_nam[] = { "R", "S", "D", "Z", "T", "W" };
+ static const char * stat_nam[] = { "R", "S", "D", "T", "Z", "W" };
printk("%-13.13s ", p->comm);
state = p->state ? __ffs(p->state) + 1 : 0;