projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xfs: add a shrinker to background inode reclaim
[linux-2.6-block.git]
/
kernel
/
sched.c
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 49d2fa7b687a6cd9956e5d7179ab26822bcff6f1..6af210a7de70d394015617863ee303059c9dd4d6 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-71,6
+71,7
@@
#include <linux/debugfs.h>
#include <linux/ctype.h>
#include <linux/ftrace.h>
#include <linux/debugfs.h>
#include <linux/ctype.h>
#include <linux/ftrace.h>
+#include <linux/slab.h>
#include <asm/tlb.h>
#include <asm/irq_regs.h>
#include <asm/tlb.h>
#include <asm/irq_regs.h>
@@
-4902,7
+4903,7
@@
SYSCALL_DEFINE3(sched_getaffinity, pid_t, pid, unsigned int, len,
int ret;
cpumask_var_t mask;
int ret;
cpumask_var_t mask;
- if (
len
< nr_cpu_ids)
+ if (
(len * BITS_PER_BYTE)
< nr_cpu_ids)
return -EINVAL;
if (len & (sizeof(unsigned long)-1))
return -EINVAL;
return -EINVAL;
if (len & (sizeof(unsigned long)-1))
return -EINVAL;
@@
-5387,7
+5388,7
@@
int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
get_task_struct(mt);
task_rq_unlock(rq, &flags);
get_task_struct(mt);
task_rq_unlock(rq, &flags);
- wake_up_process(
rq->migration_thread
);
+ wake_up_process(
mt
);
put_task_struct(mt);
wait_for_completion(&req.done);
tlb_migrate_finish(p->mm);
put_task_struct(mt);
wait_for_completion(&req.done);
tlb_migrate_finish(p->mm);