[ARM] attrib_alloc: fix outer cache flush end address

when allocating uncached pages, the outer cache should be flushed;
the end address should be specified in bytes, not in pages.

Change-Id: I3fe036f4f7e10e009f96567e3afeeef6ea603240
Signed-off-by: Gary King <gking@nvidia.com>
This commit is contained in:
Gary King
2010-10-12 15:37:01 -07:00
committed by Rebecca Schultz Zavin
parent 22adcfad50
commit f3d83237ea

View File

@@ -121,6 +121,6 @@ struct page *arm_attrib_alloc_pages_exact_node(int nid, gfp_t gfp,
update_pte(p, prot);
}
base = page_to_phys(page);
outer_flush_range(base, base + (size >> PAGE_SHIFT));
outer_flush_range(base, base + size);
return page;
}