diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-31 06:38:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-31 06:38:04 -0400 |
commit | 5fbf24659b75356e2142e1f1b88f67b34cbc3e75 (patch) | |
tree | 0e470e4cc89b72e3d74939f8c39396a6a0bebb3a /arch/x86/kernel/ldt.c | |
parent | d89961e2dc87b6e30b8e3f60bd2af5cd92cf4643 (diff) | |
parent | 6e86841d05f371b5b9b86ce76c02aaee83352298 (diff) |
Merge branch 'linus' into x86/xen
Diffstat (limited to 'arch/x86/kernel/ldt.c')
-rw-r--r-- | arch/x86/kernel/ldt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/kernel/ldt.c b/arch/x86/kernel/ldt.c index 4895e0634d22..6e388412a854 100644 --- a/arch/x86/kernel/ldt.c +++ b/arch/x86/kernel/ldt.c | |||
@@ -64,12 +64,10 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload) | |||
64 | 64 | ||
65 | if (reload) { | 65 | if (reload) { |
66 | #ifdef CONFIG_SMP | 66 | #ifdef CONFIG_SMP |
67 | cpumask_of_cpu_ptr_declare(mask); | ||
68 | |||
69 | preempt_disable(); | 67 | preempt_disable(); |
70 | load_LDT(pc); | 68 | load_LDT(pc); |
71 | cpumask_of_cpu_ptr_next(mask, smp_processor_id()); | 69 | if (!cpus_equal(current->mm->cpu_vm_mask, |
72 | if (!cpus_equal(current->mm->cpu_vm_mask, *mask)) | 70 | cpumask_of_cpu(smp_processor_id()))) |
73 | smp_call_function(flush_ldt, current->mm, 1); | 71 | smp_call_function(flush_ldt, current->mm, 1); |
74 | preempt_enable(); | 72 | preempt_enable(); |
75 | #else | 73 | #else |