]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sched: cleanup task_activated()
authorCon Kolivas <kernel@kolivas.org>
Fri, 31 Mar 2006 10:31:23 +0000 (02:31 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:58 +0000 (12:18 -0800)
commitce8ff2f39c9c97a07617a4babe86dbb0fc7f90eb
tree4b1643508ad94981e8d4deb5136d0a626e60932d
parentecbee45a842a1982e865d9242ca3aac268f6ad42
[PATCH] sched: cleanup task_activated()

The activated flag in task_struct is used to track different sleep types and
its usage is somewhat obfuscated.  Convert the variable to an enum with more
descriptive names without altering the function.

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sched.h
kernel/sched.c