diff options
author | Jack Steiner <steiner@sgi.com> | 2004-07-12 00:27:49 -0700 |
---|---|---|
committer | David Mosberger <davidm@tiger.hpl.hp.com> | 2004-07-12 00:27:49 -0700 |
commit | 48cd6783d73afae968acf1c36e7b4e149328d20b (patch) | |
tree | 81785d34f28b2afa710c6ec91d7af9aecee41b6a /kernel | |
parent | eac9ee8eb9f1a46be51870207fa68ce169810ded (diff) | |
download | history-48cd6783d73afae968acf1c36e7b4e149328d20b.tar.gz |
[PATCH] ia64: Reduce TLB flushing during process migration
This patch adds an architecture-specific callout after explicit
processor migrations. The callout allows architectures (or platforms)
to update TLB specific information (ex., cpu_vm_mask).
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 9e676db0267b79..205a81d64b20cf 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -40,6 +40,7 @@ #include <linux/cpu.h> #include <linux/percpu.h> #include <linux/kthread.h> +#include <asm/tlb.h> #include <asm/unistd.h> @@ -3349,6 +3350,7 @@ int set_cpus_allowed(task_t *p, cpumask_t new_mask) task_rq_unlock(rq, &flags); wake_up_process(rq->migration_thread); wait_for_completion(&req.done); + tlb_migrate_finish(p->mm); return 0; } out: |