diff options
author | David Howells <dhowells@redhat.com> | 2010-10-27 12:28:49 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2010-10-27 12:28:49 -0400 |
commit | 492e675116003b99dfcf0fa70084027e86bc0161 (patch) | |
tree | c799a3c3f3226700e44dfe323f7c3f1764755049 /arch/mn10300/mm | |
parent | 8f19e3daf3fffee9e18a8812067a6a4b538ae6c8 (diff) |
MN10300: Rename __flush_tlb*() to local_flush_tlb*()
Rename __flush_tlb*() to local_flush_tlb*() as it's more appropriate, and ready
to differentiate local from global TLB flushes when SMP is introduced.
Whilst we're at it, get rid of __flush_tlb_global() and make
local_flush_tlb_page() take an mm_struct pointer rather than VMA pointer.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/mm')
-rw-r--r-- | arch/mn10300/mm/init.c | 2 | ||||
-rw-r--r-- | arch/mn10300/mm/mmu-context.c | 4 | ||||
-rw-r--r-- | arch/mn10300/mm/pgtable.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/mn10300/mm/init.c b/arch/mn10300/mm/init.c index f86c28315a8e..1daf97fd7c99 100644 --- a/arch/mn10300/mm/init.c +++ b/arch/mn10300/mm/init.c | |||
@@ -73,7 +73,7 @@ void __init paging_init(void) | |||
73 | /* pass the memory from the bootmem allocator to the main allocator */ | 73 | /* pass the memory from the bootmem allocator to the main allocator */ |
74 | free_area_init(zones_size); | 74 | free_area_init(zones_size); |
75 | 75 | ||
76 | __flush_tlb_all(); | 76 | local_flush_tlb_all(); |
77 | } | 77 | } |
78 | 78 | ||
79 | /* | 79 | /* |
diff --git a/arch/mn10300/mm/mmu-context.c b/arch/mn10300/mm/mmu-context.c index 36ba02191d40..3d83966e30e1 100644 --- a/arch/mn10300/mm/mmu-context.c +++ b/arch/mn10300/mm/mmu-context.c | |||
@@ -23,7 +23,7 @@ unsigned long mmu_context_cache[NR_CPUS] = { | |||
23 | /* | 23 | /* |
24 | * flush the specified TLB entry | 24 | * flush the specified TLB entry |
25 | */ | 25 | */ |
26 | void flush_tlb_page(struct vm_area_struct *vma, unsigned long addr) | 26 | void local_flush_tlb_page(struct mm_struct *mm, unsigned long addr) |
27 | { | 27 | { |
28 | unsigned long pteu, cnx, flags; | 28 | unsigned long pteu, cnx, flags; |
29 | 29 | ||
@@ -33,7 +33,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long addr) | |||
33 | * interference from vmalloc'd regions */ | 33 | * interference from vmalloc'd regions */ |
34 | local_irq_save(flags); | 34 | local_irq_save(flags); |
35 | 35 | ||
36 | cnx = mm_context(vma->vm_mm); | 36 | cnx = mm_context(mm); |
37 | 37 | ||
38 | if (cnx != MMU_NO_CONTEXT) { | 38 | if (cnx != MMU_NO_CONTEXT) { |
39 | pteu = addr | (cnx & 0x000000ffUL); | 39 | pteu = addr | (cnx & 0x000000ffUL); |
diff --git a/arch/mn10300/mm/pgtable.c b/arch/mn10300/mm/pgtable.c index 9c1624c9e4e9..450f7ba3f8f2 100644 --- a/arch/mn10300/mm/pgtable.c +++ b/arch/mn10300/mm/pgtable.c | |||
@@ -59,7 +59,7 @@ void set_pmd_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags) | |||
59 | * It's enough to flush this one mapping. | 59 | * It's enough to flush this one mapping. |
60 | * (PGE mappings get flushed as well) | 60 | * (PGE mappings get flushed as well) |
61 | */ | 61 | */ |
62 | __flush_tlb_one(vaddr); | 62 | local_flush_tlb_one(vaddr); |
63 | } | 63 | } |
64 | 64 | ||
65 | pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) | 65 | pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) |