mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
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>
This commit is contained in:
parent
a2a2d68073
commit
af92723262
2 changed files with 2 additions and 4 deletions
|
@ -45,8 +45,7 @@ void pipe_wait(struct pipe_inode_info *pipe)
|
||||||
* Pipes are system-local resources, so sleeping on them
|
* Pipes are system-local resources, so sleeping on them
|
||||||
* is considered a noninteractive wait:
|
* is considered a noninteractive wait:
|
||||||
*/
|
*/
|
||||||
prepare_to_wait(&pipe->wait, &wait,
|
prepare_to_wait(&pipe->wait, &wait, TASK_INTERRUPTIBLE);
|
||||||
TASK_INTERRUPTIBLE | TASK_NONINTERACTIVE);
|
|
||||||
if (pipe->inode)
|
if (pipe->inode)
|
||||||
mutex_unlock(&pipe->inode->i_mutex);
|
mutex_unlock(&pipe->inode->i_mutex);
|
||||||
schedule();
|
schedule();
|
||||||
|
|
|
@ -175,8 +175,7 @@ print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
|
||||||
#define EXIT_ZOMBIE 16
|
#define EXIT_ZOMBIE 16
|
||||||
#define EXIT_DEAD 32
|
#define EXIT_DEAD 32
|
||||||
/* in tsk->state again */
|
/* in tsk->state again */
|
||||||
#define TASK_NONINTERACTIVE 64
|
#define TASK_DEAD 64
|
||||||
#define TASK_DEAD 128
|
|
||||||
|
|
||||||
#define __set_task_state(tsk, state_value) \
|
#define __set_task_state(tsk, state_value) \
|
||||||
do { (tsk)->state = (state_value); } while (0)
|
do { (tsk)->state = (state_value); } while (0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue