diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 244c287a5ac1..f2f842db03ce 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -192,6 +192,12 @@ print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq) | |||
| 192 | #define TASK_DEAD 64 | 192 | #define TASK_DEAD 64 |
| 193 | #define TASK_WAKEKILL 128 | 193 | #define TASK_WAKEKILL 128 |
| 194 | #define TASK_WAKING 256 | 194 | #define TASK_WAKING 256 |
| 195 | #define TASK_STATE_MAX 512 | ||
| 196 | |||
| 197 | #define TASK_STATE_TO_CHAR_STR "RSDTtZXxKW" | ||
| 198 | |||
| 199 | extern char ___assert_task_state[1 - 2*!!( | ||
| 200 | sizeof(TASK_STATE_TO_CHAR_STR)-1 != ilog2(TASK_STATE_MAX)+1)]; | ||
| 195 | 201 | ||
| 196 | /* Convenience macros for the sake of set_task_state */ | 202 | /* Convenience macros for the sake of set_task_state */ |
| 197 | #define TASK_KILLABLE (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE) | 203 | #define TASK_KILLABLE (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE) |
| @@ -1091,7 +1097,8 @@ struct sched_class { | |||
| 1091 | enum cpu_idle_type idle); | 1097 | enum cpu_idle_type idle); |
| 1092 | void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); | 1098 | void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); |
| 1093 | void (*post_schedule) (struct rq *this_rq); | 1099 | void (*post_schedule) (struct rq *this_rq); |
| 1094 | void (*task_wake_up) (struct rq *this_rq, struct task_struct *task); | 1100 | void (*task_waking) (struct rq *this_rq, struct task_struct *task); |
| 1101 | void (*task_woken) (struct rq *this_rq, struct task_struct *task); | ||
| 1095 | 1102 | ||
| 1096 | void (*set_cpus_allowed)(struct task_struct *p, | 1103 | void (*set_cpus_allowed)(struct task_struct *p, |
| 1097 | const struct cpumask *newmask); | 1104 | const struct cpumask *newmask); |
| @@ -1115,7 +1122,7 @@ struct sched_class { | |||
| 1115 | struct task_struct *task); | 1122 | struct task_struct *task); |
| 1116 | 1123 | ||
| 1117 | #ifdef CONFIG_FAIR_GROUP_SCHED | 1124 | #ifdef CONFIG_FAIR_GROUP_SCHED |
| 1118 | void (*moved_group) (struct task_struct *p); | 1125 | void (*moved_group) (struct task_struct *p, int on_rq); |
| 1119 | #endif | 1126 | #endif |
| 1120 | }; | 1127 | }; |
| 1121 | 1128 | ||
| @@ -1446,10 +1453,8 @@ struct task_struct { | |||
| 1446 | gfp_t lockdep_reclaim_gfp; | 1453 | gfp_t lockdep_reclaim_gfp; |
| 1447 | #endif | 1454 | #endif |
| 1448 | 1455 | ||
| 1449 | #ifdef CONFIG_FS_JOURNAL_INFO | ||
| 1450 | /* journalling filesystem info */ | 1456 | /* journalling filesystem info */ |
| 1451 | void *journal_info; | 1457 | void *journal_info; |
| 1452 | #endif | ||
| 1453 | 1458 | ||
| 1454 | /* stacked block device info */ | 1459 | /* stacked block device info */ |
| 1455 | struct bio *bio_list, **bio_tail; | 1460 | struct bio *bio_list, **bio_tail; |
| @@ -1555,7 +1560,7 @@ struct task_struct { | |||
| 1555 | }; | 1560 | }; |
| 1556 | 1561 | ||
| 1557 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1562 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |
| 1558 | #define tsk_cpumask(tsk) (&(tsk)->cpus_allowed) | 1563 | #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) |
| 1559 | 1564 | ||
| 1560 | /* | 1565 | /* |
| 1561 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT | 1566 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT |
| @@ -2596,8 +2601,6 @@ static inline void mm_init_owner(struct mm_struct *mm, struct task_struct *p) | |||
| 2596 | } | 2601 | } |
| 2597 | #endif /* CONFIG_MM_OWNER */ | 2602 | #endif /* CONFIG_MM_OWNER */ |
| 2598 | 2603 | ||
| 2599 | #define TASK_STATE_TO_CHAR_STR "RSDTtZX" | ||
| 2600 | |||
| 2601 | #endif /* __KERNEL__ */ | 2604 | #endif /* __KERNEL__ */ |
| 2602 | 2605 | ||
| 2603 | #endif | 2606 | #endif |
