aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Galbraith <efault@gmx.de>2007-10-15 11:00:13 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:13 -0400
commitaf92723262f3e0c431083f668b605a1dcdbe8f3d (patch)
tree872eb5c473fabdbe0b67b309805e3f705c759d93
parenta2a2d680735ad7c3b5250704b3863abf54ff4020 (diff)
sched: cleanup, remove the TASK_NONINTERACTIVE flag
Here's another piece of low hanging obsolete fruit. Remove obsolete TASK_NONINTERACTIVE. Signed-off-by: Mike Galbraith <efault@gmx.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--fs/pipe.c3
-rw-r--r--include/linux/sched.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/pipe.c b/fs/pipe.c
index 6b3d91a691bf..f1fa2b412f0e 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -45,8 +45,7 @@ void pipe_wait(struct pipe_inode_info *pipe)
45 * Pipes are system-local resources, so sleeping on them 45 * Pipes are system-local resources, so sleeping on them
46 * is considered a noninteractive wait: 46 * is considered a noninteractive wait:
47 */ 47 */
48 prepare_to_wait(&pipe->wait, &wait, 48 prepare_to_wait(&pipe->wait, &wait, TASK_INTERRUPTIBLE);
49 TASK_INTERRUPTIBLE | TASK_NONINTERACTIVE);
50 if (pipe->inode) 49 if (pipe->inode)
51 mutex_unlock(&pipe->inode->i_mutex); 50 mutex_unlock(&pipe->inode->i_mutex);
52 schedule(); 51 schedule();
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 47e3717a0356..49c7b374eac8 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -175,8 +175,7 @@ print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
175#define EXIT_ZOMBIE 16 175#define EXIT_ZOMBIE 16
176#define EXIT_DEAD 32 176#define EXIT_DEAD 32
177/* in tsk->state again */ 177/* in tsk->state again */
178#define TASK_NONINTERACTIVE 64 178#define TASK_DEAD 64
179#define TASK_DEAD 128
180 179
181#define __set_task_state(tsk, state_value) \ 180#define __set_task_state(tsk, state_value) \
182 do { (tsk)->state = (state_value); } while (0) 181 do { (tsk)->state = (state_value); } while (0)