diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 05a8c00e8339..5e344bbe63ec 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -57,6 +57,7 @@ struct sched_param { | |||
57 | #include <linux/llist.h> | 57 | #include <linux/llist.h> |
58 | #include <linux/uidgid.h> | 58 | #include <linux/uidgid.h> |
59 | #include <linux/gfp.h> | 59 | #include <linux/gfp.h> |
60 | #include <linux/magic.h> | ||
60 | 61 | ||
61 | #include <asm/processor.h> | 62 | #include <asm/processor.h> |
62 | 63 | ||
@@ -646,6 +647,7 @@ struct signal_struct { | |||
646 | * Live threads maintain their own counters and add to these | 647 | * Live threads maintain their own counters and add to these |
647 | * in __exit_signal, except for the group leader. | 648 | * in __exit_signal, except for the group leader. |
648 | */ | 649 | */ |
650 | seqlock_t stats_lock; | ||
649 | cputime_t utime, stime, cutime, cstime; | 651 | cputime_t utime, stime, cutime, cstime; |
650 | cputime_t gtime; | 652 | cputime_t gtime; |
651 | cputime_t cgtime; | 653 | cputime_t cgtime; |
@@ -1024,6 +1026,7 @@ struct sched_domain_topology_level { | |||
1024 | extern struct sched_domain_topology_level *sched_domain_topology; | 1026 | extern struct sched_domain_topology_level *sched_domain_topology; |
1025 | 1027 | ||
1026 | extern void set_sched_topology(struct sched_domain_topology_level *tl); | 1028 | extern void set_sched_topology(struct sched_domain_topology_level *tl); |
1029 | extern void wake_up_if_idle(int cpu); | ||
1027 | 1030 | ||
1028 | #ifdef CONFIG_SCHED_DEBUG | 1031 | #ifdef CONFIG_SCHED_DEBUG |
1029 | # define SD_INIT_NAME(type) .name = #type | 1032 | # define SD_INIT_NAME(type) .name = #type |
@@ -2647,6 +2650,8 @@ static inline unsigned long *end_of_stack(struct task_struct *p) | |||
2647 | } | 2650 | } |
2648 | 2651 | ||
2649 | #endif | 2652 | #endif |
2653 | #define task_stack_end_corrupted(task) \ | ||
2654 | (*(end_of_stack(task)) != STACK_END_MAGIC) | ||
2650 | 2655 | ||
2651 | static inline int object_is_on_stack(void *obj) | 2656 | static inline int object_is_on_stack(void *obj) |
2652 | { | 2657 | { |
@@ -2669,6 +2674,7 @@ static inline unsigned long stack_not_used(struct task_struct *p) | |||
2669 | return (unsigned long)n - (unsigned long)end_of_stack(p); | 2674 | return (unsigned long)n - (unsigned long)end_of_stack(p); |
2670 | } | 2675 | } |
2671 | #endif | 2676 | #endif |
2677 | extern void set_task_stack_end_magic(struct task_struct *tsk); | ||
2672 | 2678 | ||
2673 | /* set thread flags in other task's structures | 2679 | /* set thread flags in other task's structures |
2674 | * - see asm/thread_info.h for TIF_xxxx flags available | 2680 | * - see asm/thread_info.h for TIF_xxxx flags available |