sched: remove noninteractive flag
PATCH 3/6 sched: remove noninteractive flag
From: Con Kolivas <[email protected]>
Remove the TASK_NONINTERACTIVE flag as it will no longer be used.
Signed-off-by Con Kolivas <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Nick Piggin <[email protected]>
Cc "Siddha, Suresh B" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/pipe.c | 7 +------ include/linux/sched.h | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-)
fs/pipe.c +1 -6
@@ -41,12 +41,7 @@ void pipe_wait(struct pipe_inode_info *p {DEFINE_WAIT (wait); -/* -* Pipes are system-local resources, so sleeping on them -* is considered a noninteractive wait: -*/ -prepare_to_wait (&pipe->wait, &wait, -TASK_INTERRUPTIBLE |TASK_NONINTERACTIVE ); +prepare_to_wait (&pipe->wait, &wait,TASK_INTERRUPTIBLE );if (pipe->inode)mutex_unlock (&pipe->inode->i_mutex);schedule ();
include/linux/sched.h +1 -2
@@ -150,8 +150,7 @@ extern unsigned long weighted_cpuload(co#define EXIT_ZOMBIE 16#define EXIT_DEAD 32/* in tsk->state again */ -#define TASK_NONINTERACTIVE 64 -#define TASK_DEAD 128 +#define TASK_DEAD 64#define __set_task_state (tsk, state_value) \ do { (tsk)->state = (state_value); } while (0)
Signature · 1 line
-ck