Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136480
b: refs/heads/master
c: 5766b84
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jan 20, 2009
1 parent 6172f32 commit 027225a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 28e7d82d6325734c7ecd1f223b892701f7a8c171
refs/heads/master: 5766b842b23c6b40935a5f3bd435b2bcdaff2143
13 changes: 8 additions & 5 deletions trunk/arch/x86/kernel/tlb_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
struct mm_struct *mm, unsigned long va)
{
/*
* - mask must exist :)
* mm must exist :)
*/
BUG_ON(cpumask_empty(cpumask));
BUG_ON(!mm);

/*
Expand All @@ -138,14 +137,18 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
spin_lock(&tlbstate_lock);

cpumask_andnot(flush_cpumask, cpumask, cpumask_of(smp_processor_id()));
#ifdef CONFIG_HOTPLUG_CPU
/* If a CPU which we ran on has gone down, OK. */
cpumask_and(flush_cpumask, flush_cpumask, cpu_online_mask);

/*
* If a task whose mm mask we are looking at has descheduled and
* has cleared its presence from the mask, or if a CPU which we ran
* on has gone down then there might be no flush work left:
*/
if (unlikely(cpumask_empty(flush_cpumask))) {
spin_unlock(&tlbstate_lock);
return;
}
#endif

flush_mm = mm;
flush_va = va;

Expand Down

0 comments on commit 027225a

Please sign in to comment.