diff options
author | 2016-07-14 10:37:48 +0200 | |
---|---|---|
committer | 2016-07-14 10:37:48 +0200 | |
commit | cefef3a76287c9b51e946d312aea1637bb3a57ff (patch) | |
tree | acc1ee1a6a530803951e3c0a0ca65c08a567f563 /include/linux/sched.h | |
parent | Linux 4.7-rc7 (diff) | |
parent | sched/core: Panic on scheduling while atomic bugs if kernel.panic_on_warn is set (diff) | |
download | wireguard-linux-cefef3a76287c9b51e946d312aea1637bb3a57ff.tar.xz wireguard-linux-cefef3a76287c9b51e946d312aea1637bb3a57ff.zip |
Merge branch 'sched/core' into timers/nohz, to avoid conflicts in upcoming patches
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 253538f29ade..d99218a1e043 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -219,9 +219,10 @@ extern void proc_sched_set_task(struct task_struct *p); #define TASK_WAKING 256 #define TASK_PARKED 512 #define TASK_NOLOAD 1024 -#define TASK_STATE_MAX 2048 +#define TASK_NEW 2048 +#define TASK_STATE_MAX 4096 -#define TASK_STATE_TO_CHAR_STR "RSDTtXZxKWPN" +#define TASK_STATE_TO_CHAR_STR "RSDTtXZxKWPNn" extern char ___assert_task_state[1 - 2*!!( sizeof(TASK_STATE_TO_CHAR_STR)-1 != ilog2(TASK_STATE_MAX)+1)]; @@ -2139,6 +2140,9 @@ static inline void put_task_struct(struct task_struct *t) __put_task_struct(t); } +struct task_struct *task_rcu_dereference(struct task_struct **ptask); +struct task_struct *try_get_task_struct(struct task_struct **ptask); + #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN extern void task_cputime(struct task_struct *t, cputime_t *utime, cputime_t *stime); |