diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2b7b81df78b3..225347d97d47 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -38,6 +38,7 @@ | |||
| 38 | #define SCHED_BATCH 3 | 38 | #define SCHED_BATCH 3 |
| 39 | /* SCHED_ISO: reserved but not implemented yet */ | 39 | /* SCHED_ISO: reserved but not implemented yet */ |
| 40 | #define SCHED_IDLE 5 | 40 | #define SCHED_IDLE 5 |
| 41 | #define SCHED_LITMUS 6 | ||
| 41 | /* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */ | 42 | /* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */ |
| 42 | #define SCHED_RESET_ON_FORK 0x40000000 | 43 | #define SCHED_RESET_ON_FORK 0x40000000 |
| 43 | 44 | ||
| @@ -94,6 +95,8 @@ struct sched_param { | |||
| 94 | 95 | ||
| 95 | #include <asm/processor.h> | 96 | #include <asm/processor.h> |
| 96 | 97 | ||
| 98 | #include <litmus/rt_param.h> | ||
| 99 | |||
| 97 | struct exec_domain; | 100 | struct exec_domain; |
| 98 | struct futex_pi_state; | 101 | struct futex_pi_state; |
| 99 | struct robust_list_head; | 102 | struct robust_list_head; |
| @@ -1166,6 +1169,7 @@ struct sched_rt_entity { | |||
| 1166 | }; | 1169 | }; |
| 1167 | 1170 | ||
| 1168 | struct rcu_node; | 1171 | struct rcu_node; |
| 1172 | struct od_table_entry; | ||
| 1169 | 1173 | ||
| 1170 | struct task_struct { | 1174 | struct task_struct { |
| 1171 | volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ | 1175 | volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */ |
| @@ -1250,9 +1254,9 @@ struct task_struct { | |||
| 1250 | unsigned long stack_canary; | 1254 | unsigned long stack_canary; |
| 1251 | #endif | 1255 | #endif |
| 1252 | 1256 | ||
| 1253 | /* | 1257 | /* |
| 1254 | * pointers to (original) parent process, youngest child, younger sibling, | 1258 | * pointers to (original) parent process, youngest child, younger sibling, |
| 1255 | * older sibling, respectively. (p->father can be replaced with | 1259 | * older sibling, respectively. (p->father can be replaced with |
| 1256 | * p->real_parent->pid) | 1260 | * p->real_parent->pid) |
| 1257 | */ | 1261 | */ |
| 1258 | struct task_struct *real_parent; /* real parent process */ | 1262 | struct task_struct *real_parent; /* real parent process */ |
| @@ -1464,6 +1468,13 @@ struct task_struct { | |||
| 1464 | int make_it_fail; | 1468 | int make_it_fail; |
| 1465 | #endif | 1469 | #endif |
| 1466 | struct prop_local_single dirties; | 1470 | struct prop_local_single dirties; |
| 1471 | |||
| 1472 | /* LITMUS RT parameters and state */ | ||
| 1473 | struct rt_param rt_param; | ||
| 1474 | |||
| 1475 | /* references to PI semaphores, etc. */ | ||
| 1476 | struct od_table_entry *od_table; | ||
| 1477 | |||
| 1467 | #ifdef CONFIG_LATENCYTOP | 1478 | #ifdef CONFIG_LATENCYTOP |
| 1468 | int latency_record_count; | 1479 | int latency_record_count; |
| 1469 | struct latency_record latency_record[LT_SAVECOUNT]; | 1480 | struct latency_record latency_record[LT_SAVECOUNT]; |
| @@ -2018,7 +2029,7 @@ static inline int dequeue_signal_lock(struct task_struct *tsk, sigset_t *mask, s | |||
| 2018 | spin_unlock_irqrestore(&tsk->sighand->siglock, flags); | 2029 | spin_unlock_irqrestore(&tsk->sighand->siglock, flags); |
| 2019 | 2030 | ||
| 2020 | return ret; | 2031 | return ret; |
| 2021 | } | 2032 | } |
| 2022 | 2033 | ||
| 2023 | extern void block_all_signals(int (*notifier)(void *priv), void *priv, | 2034 | extern void block_all_signals(int (*notifier)(void *priv), void *priv, |
| 2024 | sigset_t *mask); | 2035 | sigset_t *mask); |
