diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ea1b5f32ec5c..38c8654aaa96 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -114,6 +114,7 @@ extern unsigned long nr_iowait(void); | |||
114 | #define TASK_TRACED 8 | 114 | #define TASK_TRACED 8 |
115 | #define EXIT_ZOMBIE 16 | 115 | #define EXIT_ZOMBIE 16 |
116 | #define EXIT_DEAD 32 | 116 | #define EXIT_DEAD 32 |
117 | #define TASK_NONINTERACTIVE 64 | ||
117 | 118 | ||
118 | #define __set_task_state(tsk, state_value) \ | 119 | #define __set_task_state(tsk, state_value) \ |
119 | do { (tsk)->state = (state_value); } while (0) | 120 | do { (tsk)->state = (state_value); } while (0) |
@@ -202,6 +203,8 @@ extern int in_sched_functions(unsigned long addr); | |||
202 | 203 | ||
203 | #define MAX_SCHEDULE_TIMEOUT LONG_MAX | 204 | #define MAX_SCHEDULE_TIMEOUT LONG_MAX |
204 | extern signed long FASTCALL(schedule_timeout(signed long timeout)); | 205 | extern signed long FASTCALL(schedule_timeout(signed long timeout)); |
206 | extern signed long schedule_timeout_interruptible(signed long timeout); | ||
207 | extern signed long schedule_timeout_uninterruptible(signed long timeout); | ||
205 | asmlinkage void schedule(void); | 208 | asmlinkage void schedule(void); |
206 | 209 | ||
207 | struct namespace; | 210 | struct namespace; |
@@ -604,6 +607,11 @@ extern int groups_search(struct group_info *group_info, gid_t grp); | |||
604 | #define GROUP_AT(gi, i) \ | 607 | #define GROUP_AT(gi, i) \ |
605 | ((gi)->blocks[(i)/NGROUPS_PER_BLOCK][(i)%NGROUPS_PER_BLOCK]) | 608 | ((gi)->blocks[(i)/NGROUPS_PER_BLOCK][(i)%NGROUPS_PER_BLOCK]) |
606 | 609 | ||
610 | #ifdef ARCH_HAS_PREFETCH_SWITCH_STACK | ||
611 | extern void prefetch_stack(struct task_struct*); | ||
612 | #else | ||
613 | static inline void prefetch_stack(struct task_struct *t) { } | ||
614 | #endif | ||
607 | 615 | ||
608 | struct audit_context; /* See audit.c */ | 616 | struct audit_context; /* See audit.c */ |
609 | struct mempolicy; | 617 | struct mempolicy; |
@@ -895,6 +903,8 @@ extern int task_curr(const task_t *p); | |||
895 | extern int idle_cpu(int cpu); | 903 | extern int idle_cpu(int cpu); |
896 | extern int sched_setscheduler(struct task_struct *, int, struct sched_param *); | 904 | extern int sched_setscheduler(struct task_struct *, int, struct sched_param *); |
897 | extern task_t *idle_task(int cpu); | 905 | extern task_t *idle_task(int cpu); |
906 | extern task_t *curr_task(int cpu); | ||
907 | extern void set_curr_task(int cpu, task_t *p); | ||
898 | 908 | ||
899 | void yield(void); | 909 | void yield(void); |
900 | 910 | ||