diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ab84adf5bb9a..c4fd3fcd3feb 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -684,6 +684,13 @@ static inline void prefetch_stack(struct task_struct *t) { } | |||
684 | struct audit_context; /* See audit.c */ | 684 | struct audit_context; /* See audit.c */ |
685 | struct mempolicy; | 685 | struct mempolicy; |
686 | 686 | ||
687 | enum sleep_type { | ||
688 | SLEEP_NORMAL, | ||
689 | SLEEP_NONINTERACTIVE, | ||
690 | SLEEP_INTERACTIVE, | ||
691 | SLEEP_INTERRUPTED, | ||
692 | }; | ||
693 | |||
687 | struct task_struct { | 694 | struct task_struct { |
688 | volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ | 695 | volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ |
689 | struct thread_info *thread_info; | 696 | struct thread_info *thread_info; |
@@ -706,7 +713,7 @@ struct task_struct { | |||
706 | unsigned long sleep_avg; | 713 | unsigned long sleep_avg; |
707 | unsigned long long timestamp, last_ran; | 714 | unsigned long long timestamp, last_ran; |
708 | unsigned long long sched_time; /* sched_clock time spent running */ | 715 | unsigned long long sched_time; /* sched_clock time spent running */ |
709 | int activated; | 716 | enum sleep_type sleep_type; |
710 | 717 | ||
711 | unsigned long policy; | 718 | unsigned long policy; |
712 | cpumask_t cpus_allowed; | 719 | cpumask_t cpus_allowed; |