diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-24 15:34:38 (GMT) |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-24 00:04:39 (GMT) |
commit | e0ad955680878998ff7dc51ce06ddad12260423a (patch) | |
tree | dc475d81413dacd8ecbe3e6d0e4949be7ec97b44 | |
parent | e68110fb54c3c784fb66be67d8d18a86286eefdd (diff) | |
download | linux-e0ad955680878998ff7dc51ce06ddad12260423a.tar.xz |
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>
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index cbf2a3b..848d1f2 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 |