diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-26 22:44:50 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:14:06 -0500 |
commit | 7a591cfe4efef8a232e4938d44ae6693b319f6d7 (patch) | |
tree | e6fbdfb34572f768788b773e3ce186e3924ab685 /arch/sparc64/mm/tlb.c | |
parent | 2a3a5f5ddbefde498e87f10924d4bf741c5bf37f (diff) |
[SPARC64]: Avoid dcache-dirty page state management on sun4v.
It is totally wasted work, since we have no D-cache aliasing
issues on sun4v.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm/tlb.c')
-rw-r--r-- | arch/sparc64/mm/tlb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc64/mm/tlb.c b/arch/sparc64/mm/tlb.c index 78357cc2a0b7..a079cf42505e 100644 --- a/arch/sparc64/mm/tlb.c +++ b/arch/sparc64/mm/tlb.c | |||
@@ -49,7 +49,8 @@ void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, pte_t *ptep, pte_t | |||
49 | if (pte_exec(orig)) | 49 | if (pte_exec(orig)) |
50 | vaddr |= 0x1UL; | 50 | vaddr |= 0x1UL; |
51 | 51 | ||
52 | if (pte_dirty(orig)) { | 52 | if (tlb_type != hypervisor && |
53 | pte_dirty(orig)) { | ||
53 | unsigned long paddr, pfn = pte_pfn(orig); | 54 | unsigned long paddr, pfn = pte_pfn(orig); |
54 | struct address_space *mapping; | 55 | struct address_space *mapping; |
55 | struct page *page; | 56 | struct page *page; |