Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105219
b: refs/heads/master
c: c42f4f4
h: refs/heads/master
i:
  105217: af38c5f
  105215: f6ea963
v: v3
  • Loading branch information
Mike Travis authored and Ingo Molnar committed Jul 18, 2008
1 parent 9df86f6 commit c29f68e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb6d2be60dc3ec9ac788f45d8e24b82a9faacdd9
refs/heads/master: c42f4f4c6dab3b2b7768c36173ee7c7ecf79eddb
6 changes: 3 additions & 3 deletions trunk/arch/x86/kernel/ldt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c29f68e

Please sign in to comment.