From c29f68ef734c3224a3121c5cbbc4dc36ac00438c Mon Sep 17 00:00:00 2001 From: Mike Travis Date: Tue, 15 Jul 2008 14:14:32 -0700 Subject: [PATCH] --- yaml --- r: 105219 b: refs/heads/master c: c42f4f4c6dab3b2b7768c36173ee7c7ecf79eddb h: refs/heads/master i: 105217: af38c5fe9efd9459dcf1493b9f30f547f3f3de6d 105215: f6ea963091642f57d36c54bc55f84119f07d816f v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/ldt.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 914c14505dbc..b13a8a6dad7d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cb6d2be60dc3ec9ac788f45d8e24b82a9faacdd9 +refs/heads/master: c42f4f4c6dab3b2b7768c36173ee7c7ecf79eddb diff --git a/trunk/arch/x86/kernel/ldt.c b/trunk/arch/x86/kernel/ldt.c index a8449571858a..3fee2aa50f3f 100644 --- a/trunk/arch/x86/kernel/ldt.c +++ b/trunk/arch/x86/kernel/ldt.c @@ -62,12 +62,12 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload) if (reload) { #ifdef CONFIG_SMP - cpumask_t mask; + cpumask_of_cpu_ptr_declare(mask); preempt_disable(); load_LDT(pc); - mask = cpumask_of_cpu(smp_processor_id()); - if (!cpus_equal(current->mm->cpu_vm_mask, mask)) + cpumask_of_cpu_ptr_next(mask, smp_processor_id()); + if (!cpus_equal(current->mm->cpu_vm_mask, *mask)) smp_call_function(flush_ldt, current->mm, 1); preempt_enable(); #else