Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21524
b: refs/heads/master
c: 77b838f
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 584b08c commit 593b310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: a0663a79ad4faebe1db4a56e2e767b120b12333a
refs/heads/master: 77b838fa1ef0ab02f75afc09834c60d87b86772f
5 changes: 3 additions & 2 deletions trunk/arch/sparc64/mm/tsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
void destroy_context(struct mm_struct *mm)
{
unsigned long size = mm->context.tsb_nentries * sizeof(struct tsb);
unsigned long flags;

free_pages((unsigned long) mm->context.tsb, get_order(size));

Expand All @@ -383,12 +384,12 @@ void destroy_context(struct mm_struct *mm)
mm->context.tsb = NULL;
mm->context.tsb_reg_val = 0UL;

spin_lock(&ctx_alloc_lock);
spin_lock_irqsave(&ctx_alloc_lock, flags);

if (CTX_VALID(mm->context)) {
unsigned long nr = CTX_NRBITS(mm->context);
mmu_context_bmap[nr>>6] &= ~(1UL << (nr & 63));
}

spin_unlock(&ctx_alloc_lock);
spin_unlock_irqrestore(&ctx_alloc_lock, flags);
}

0 comments on commit 593b310

Please sign in to comment.