diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-08-14 06:19:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-14 06:19:59 -0400 |
commit | 8d7ccaa545490cdffdfaff0842436a8dd85cf47b (patch) | |
tree | 8129b5907161bc6ae26deb3645ce1e280c5e1f51 /arch/x86/kernel/ldt.c | |
parent | b2139aa0eec330c711c5a279db361e5ef1178e78 (diff) | |
parent | 30a2f3c60a84092c8084dfe788b710f8d0768cd4 (diff) |
Merge commit 'v2.6.27-rc3' into x86/prototypes
Conflicts:
include/asm-x86/dma-mapping.h
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 c49ff2dc8f83..0ed5f939b905 100644 --- a/arch/x86/kernel/ldt.c +++ b/arch/x86/kernel/ldt.c | |||
@@ -63,12 +63,10 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload) | |||
63 | 63 | ||
64 | if (reload) { | 64 | if (reload) { |
65 | #ifdef CONFIG_SMP | 65 | #ifdef CONFIG_SMP |
66 | cpumask_t mask; | ||
67 | |||
68 | preempt_disable(); | 66 | preempt_disable(); |
69 | load_LDT(pc); | 67 | load_LDT(pc); |
70 | mask = cpumask_of_cpu(smp_processor_id()); | 68 | if (!cpus_equal(current->mm->cpu_vm_mask, |
71 | if (!cpus_equal(current->mm->cpu_vm_mask, mask)) | 69 | cpumask_of_cpu(smp_processor_id()))) |
72 | smp_call_function(flush_ldt, current->mm, 1); | 70 | smp_call_function(flush_ldt, current->mm, 1); |
73 | preempt_enable(); | 71 | preempt_enable(); |
74 | #else | 72 | #else |