Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375181
b: refs/heads/master
c: f9afbd4
h: refs/heads/master
i:
  375179: e59741d
v: v3
  • Loading branch information
Sanjay Lal authored and Ralf Baechle committed May 8, 2013
1 parent 82351a0 commit 29ffd7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2e3656d23b7e2465da22966feef6170e9b28b2b
refs/heads/master: f9afbd45b0d04e4e1f9bff0b9309f61bfd28491c
6 changes: 6 additions & 0 deletions trunk/arch/mips/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,21 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
static inline void
get_new_mmu_context(struct mm_struct *mm, unsigned long cpu)
{
extern void kvm_local_flush_tlb_all(void);
unsigned long asid = asid_cache(cpu);

if (! ((asid += ASID_INC) & ASID_MASK) ) {
if (cpu_has_vtag_icache)
flush_icache_all();
#ifdef CONFIG_VIRTUALIZATION
kvm_local_flush_tlb_all(); /* start new asid cycle */
#else
local_flush_tlb_all(); /* start new asid cycle */
#endif
if (!asid) /* fix version if needed */
asid = ASID_FIRST_VERSION;
}

cpu_context(cpu, mm) = asid_cache(cpu) = asid;
}

Expand Down

0 comments on commit 29ffd7c

Please sign in to comment.