From: Paul Mundt Date: Wed, 27 Sep 2006 02:29:55 +0000 (+0900) Subject: sh: flush_cache_range() cleanup and optimizations. X-Git-Tag: v2.6.19-rc1~902^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a252710fc5b63b24934905ca47ecf661702d7f00;p=pandora-kernel.git sh: flush_cache_range() cleanup and optimizations. flush_cache_range() wasn't page aligning the end of the range, we can't assume that it will always be page aligned, and we ended up getting unaligned faults in some rare call paths. Additionally, we add a small optimization to just purge the dcache entirely if the range is large enough that the page table walking will take longer. We use an arbitrary value of 64 pages for the large range size, as per sh64. Signed-off-by: Paul Mundt --- Reading git-diff-tree failed