diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-27 04:44:50 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 10:14:06 +0100 |
commit | 7a591cfe4efef8a232e4938d44ae6693b319f6d7 (patch) | |
tree | e6fbdfb34572f768788b773e3ce186e3924ab685 /arch/sparc64/mm/tlb.c | |
parent | [SPARC64]: Bulletproof hypervisor TLB flushing. (diff) | |
download | linux-7a591cfe4efef8a232e4938d44ae6693b319f6d7.tar.xz linux-7a591cfe4efef8a232e4938d44ae6693b319f6d7.zip |
[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 if (pte_exec(orig)) vaddr |= 0x1UL; - if (pte_dirty(orig)) { + if (tlb_type != hypervisor && + pte_dirty(orig)) { unsigned long paddr, pfn = pte_pfn(orig); struct address_space *mapping; struct page *page; |