summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorRusty Russell2009-09-24 17:34:38 +0200
committerRusty Russell2009-09-24 02:04:39 +0200
commite0ad955680878998ff7dc51ce06ddad12260423a (patch)
treedc475d81413dacd8ecbe3e6d0e4949be7ec97b44 /include/linux/sched.h
parentACPI: remove cpumask_t usage (diff)
downloadkernel-qcow2-linux-e0ad955680878998ff7dc51ce06ddad12260423a.tar.gz
kernel-qcow2-linux-e0ad955680878998ff7dc51ce06ddad12260423a.tar.xz
kernel-qcow2-linux-e0ad955680878998ff7dc51ce06ddad12260423a.zip
cpumask: don't define set_cpus_allowed() if CONFIG_CPUMASK_OFFSTACK=y
You're not supposed to pass cpumasks on the stack in that case. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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 cbf2a3b46280..848d1f20086e 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1817,10 +1817,13 @@ static inline int set_cpus_allowed_ptr(struct task_struct *p,
return 0;
}
#endif
+
+#ifndef CONFIG_CPUMASK_OFFSTACK
static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask)
{
return set_cpus_allowed_ptr(p, &new_mask);
}
+#endif
/*
* Architectures can set this to 1 if they have specified