Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252405
b: refs/heads/master
c: 45b9523
h: refs/heads/master
i:
  252403: 59dff45
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed May 26, 2011
1 parent 7b84f7a commit 5b61eef
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: 52af9c6cd863fe37d1103035ec7ee22ac1296458
refs/heads/master: 45b95235b0ac86cef2ad4480b0618b8778847479
6 changes: 3 additions & 3 deletions trunk/arch/arm/mm/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void reset_context(void *info)
return;

smp_rmb();
asid = cpu_last_asid + cpu + 1;
asid = cpu_last_asid + cpu;

flush_context();
set_mm_context(mm, asid);
Expand Down Expand Up @@ -144,13 +144,13 @@ void __new_context(struct mm_struct *mm)
* to start a new version and flush the TLB.
*/
if (unlikely((asid & ~ASID_MASK) == 0)) {
asid = cpu_last_asid + smp_processor_id() + 1;
asid = cpu_last_asid + smp_processor_id();
flush_context();
#ifdef CONFIG_SMP
smp_wmb();
smp_call_function(reset_context, NULL, 1);
#endif
cpu_last_asid += NR_CPUS;
cpu_last_asid += NR_CPUS - 1;
}

set_mm_context(mm, asid);
Expand Down

0 comments on commit 5b61eef

Please sign in to comment.