projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e046b9
)
sh: Use local TLB flush in set_pte_phys().
author
Paul Mundt
<lethal@linux-sh.org>
Fri, 19 Jun 2009 06:37:11 +0000
(15:37 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 23 Jun 2009 08:30:17 +0000
(17:30 +0900)
set_pte_phys() presently uses the global flush_tlb_one(), which locks on
SMP trying to do the IPI. As we have not even initialized the other CPUs
at this point, switch to the local_ variant so the flush happens on the
boot CPU.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/sh/mm/init.c
b/arch/sh/mm/init.c
index
ee8e6bb
..
d1be042
100644
(file)
--- a/
arch/sh/mm/init.c
+++ b/
arch/sh/mm/init.c
@@
-70,7
+70,7
@@
static void set_pte_phys(unsigned long addr, unsigned long phys, pgprot_t prot)
}
set_pte(pte, pfn_pte(phys >> PAGE_SHIFT, prot));
- flush_tlb_one(get_asid(), addr);
+
local_
flush_tlb_one(get_asid(), addr);
}
/*