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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 75bf49291c60..d94ebc86887f 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1424,6 +1424,9 @@ struct task_struct {
1424#endif 1424#endif
1425}; 1425};
1426 1426
1427/* Future-safe accessor for struct task_struct's cpus_allowed. */
1428#define tsk_cpumask(tsk) (&(tsk)->cpus_allowed)
1429
1427/* 1430/*
1428 * Priority of a process goes from 0..MAX_PRIO-1, valid RT 1431 * Priority of a process goes from 0..MAX_PRIO-1, valid RT
1429 * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH 1432 * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH