summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorLinus Torvalds2015-06-23 04:20:04 +0200
committerLinus Torvalds2015-06-23 04:20:04 +0200
commit3a95398f54cbd664c749fe9f1bfc7e7dbace92d0 (patch)
tree3eee56a46eada7bc6354e442d9164b555a78e43a /include/linux/sched.h
parentMerge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke... (diff)
parentnohz: Set isolcpus when nohz_full is set (diff)
downloadkernel-qcow2-linux-3a95398f54cbd664c749fe9f1bfc7e7dbace92d0.tar.gz
kernel-qcow2-linux-3a95398f54cbd664c749fe9f1bfc7e7dbace92d0.tar.xz
kernel-qcow2-linux-3a95398f54cbd664c749fe9f1bfc7e7dbace92d0.zip
Merge branch 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull NOHZ updates from Thomas Gleixner: "A few updates to the nohz infrastructure: - recursion protection for context tracking - make the TIF_NOHZ inheritance smarter - isolate cpus which belong to the NOHZ full set" * 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: nohz: Set isolcpus when nohz_full is set nohz: Add tick_nohz_full_add_cpus_to() API context_tracking: Inherit TIF_NOHZ through forks instead of context switches context_tracking: Protect against recursion
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 30364cb58b1f..6633e83e608a 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2599,6 +2599,9 @@ static inline unsigned long wait_task_inactive(struct task_struct *p,
}
#endif
+#define tasklist_empty() \
+ list_empty(&init_task.tasks)
+
#define next_task(p) \
list_entry_rcu((p)->tasks.next, struct task_struct, tasks)