[ARM] attrib_alloc: fix outer cache flush end address
authorGary King <gking@nvidia.com>
Tue, 12 Oct 2010 22:37:01 +0000 (15:37 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Wed, 13 Oct 2010 01:15:55 +0000 (18:15 -0700)
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>
arch/arm/mm/attrib_alloc.c

index 0966a8b8bf41118d11dfc6358c70a887cab4379e..73be2d664669e8d56bca06635f96ba3c69a035a7 100644 (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;
 }