projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e68110f
)
cpumask: don't define set_cpus_allowed() if CONFIG_CPUMASK_OFFSTACK=y
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 24 Sep 2009 15:34:38 +0000
(09:34 -0600)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 24 Sep 2009 00:04:39 +0000
(09:34 +0930)
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
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/sched.h
b/include/linux/sched.h
index cbf2a3b46280a78f8d8cdfc408492fb1ac26fad3..848d1f20086e64d53d0023b8ea7538b047ee6adc 100644
(file)
--- 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