* [PATCH 11/17] cpumask: don't define set_cpus_allowed() if CONFIG_CPUMASK_OFFSTACK=y
@ 2009-06-12 13:01 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2009-06-12 13:01 UTC (permalink / raw)
To: linux-kernel
You're not supposed to pass cpumasks on the stack in that case.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
include/linux/sched.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/sched.h b/include/linux/sched.h
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1682,10 +1682,13 @@ static inline int set_cpus_allowed_ptr(s
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-12 13:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-12 13:01 [PATCH 11/17] cpumask: don't define set_cpus_allowed() if CONFIG_CPUMASK_OFFSTACK=y Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®