diff options
author | Krishna Reddy <vdumpa@nvidia.com> | 2011-12-02 12:42:20 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-01-19 16:16:30 -0800 |
commit | 82d503cee7af4bad948cf4cb8fa16d798e7a2c8c (patch) | |
tree | 4e741db980e08b93ad6d61c358fc8e7177481ee4 /drivers/video | |
parent | 7d198798dd246d0b20e06d6f933e96cfde3b60fd (diff) |
video: tegra: nvmap: Remove high mem page cache flush.
Remove cache flush for high mem pages from nvmap as CPA is taking
care of cache flush for high mem pages.
Bug 865816
Change-Id: Ia7b06cdd80a16de0996c119dd950e68c5fd24b5b
Reviewed-on: http://git-master/r/71726
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/75881
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap_handle.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c index 924952932c85..87d2407004bc 100644 --- a/drivers/video/tegra/nvmap/nvmap_handle.c +++ b/drivers/video/tegra/nvmap/nvmap_handle.c @@ -152,7 +152,6 @@ static int handle_page_alloc(struct nvmap_client *client, pgprot_t prot; unsigned int i = 0; struct page **pages; - unsigned long base; pages = altalloc(nr_page * sizeof(*pages)); if (!pages) @@ -201,19 +200,7 @@ static int handle_page_alloc(struct nvmap_client *client, set_pages_array_uc(pages, nr_page); else if (h->flags == NVMAP_HANDLE_INNER_CACHEABLE) set_pages_array_iwb(pages, nr_page); - else - goto skip_cache_flush; - - /* Flush the cache for allocated high mem pages only */ - for (i = 0; i < nr_page; i++) { - if (PageHighMem(pages[i])) { - __flush_dcache_page(page_mapping(pages[i]), pages[i]); - base = page_to_phys(pages[i]); - outer_flush_range(base, base + PAGE_SIZE); - } - } -skip_cache_flush: h->size = size; h->pgalloc.pages = pages; h->pgalloc.contig = contiguous; |