summaryrefslogtreecommitdiff
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-10-12 15:37:01 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:36:09 -0800
commit925fcef809ca69e55890d3f9bd0e066880cc1c67 (patch)
treec9a10ff12121d119ecb7fcdede184a3a3765a8cc /arch/arm/mm
parentdebaf83bfcc4fb9a9371200e4464784f6215bf33 (diff)
[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>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/attrib_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/attrib_alloc.c b/arch/arm/mm/attrib_alloc.c
index 0966a8b8bf41..73be2d664669 100644
--- a/arch/arm/mm/attrib_alloc.c
+++ b/arch/arm/mm/attrib_alloc.c
@@ -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;
}