Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360880
b: refs/heads/master
c: 89c7e4b
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Mar 3, 2013
1 parent e3da468 commit f941724
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 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: 862c588f062fe9339a180cf6429e4df1855c376a
refs/heads/master: 89c7e4b8bbb3d4fa52df5746a8ad38e610143651
1 change: 1 addition & 0 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
* switch away from it before attempting any exclusive accesses.
*/
cpu_switch_mm(mm->pgd, mm);
local_flush_bp_all();
enter_lazy_tlb(mm, current);
local_flush_tlb_all();

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/kernel/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ int cpu_suspend(unsigned long arg, int (*fn)(unsigned long))
ret = __cpu_suspend(arg, fn);
if (ret == 0) {
cpu_switch_mm(mm->pgd, mm);
local_flush_bp_all();
local_flush_tlb_all();
}

Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/arm/mm/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk)
atomic64_set(&mm->context.id, asid);
}

if (cpumask_test_and_clear_cpu(cpu, &tlb_flush_pending))
if (cpumask_test_and_clear_cpu(cpu, &tlb_flush_pending)) {
local_flush_bp_all();
local_flush_tlb_all();
}

atomic64_set(&per_cpu(active_asids, cpu), asid);
cpumask_set_cpu(cpu, mm_cpumask(mm));
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mm/idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ void setup_mm_for_reboot(void)
{
/* Switch to the identity mapping. */
cpu_switch_mm(idmap_pgd, &init_mm);
local_flush_bp_all();

#ifdef CONFIG_CPU_HAS_ASID
/*
Expand Down

0 comments on commit f941724

Please sign in to comment.