[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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user