aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 8c216e057c94..2c36f62e7544 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1175,6 +1175,8 @@ struct task_struct {
1175 /* ??? */ 1175 /* ??? */
1176 unsigned int personality; 1176 unsigned int personality;
1177 unsigned did_exec:1; 1177 unsigned did_exec:1;
1178 unsigned in_execve:1; /* Tell the LSMs that the process is doing an
1179 * execve */
1178 pid_t pid; 1180 pid_t pid;
1179 pid_t tgid; 1181 pid_t tgid;
1180 1182
@@ -1419,6 +1421,9 @@ struct task_struct {
1419#endif 1421#endif
1420}; 1422};
1421 1423
1424/* Future-safe accessor for struct task_struct's cpus_allowed. */
1425#define tsk_cpumask(tsk) (&(tsk)->cpus_allowed)
1426
1422/* 1427/*
1423 * Priority of a process goes from 0..MAX_PRIO-1, valid RT 1428 * Priority of a process goes from 0..MAX_PRIO-1, valid RT
1424 * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH 1429 * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH