From: Phil Edworthy Date: Mon, 9 Jan 2012 16:08:47 +0000 (+0000) Subject: sh: sh2a: Improve cache flush/invalidate functions X-Git-Tag: v3.3-rc1~91^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1537b4863da620f12f5b42ece61bf65314148ed;p=pandora-kernel.git sh: sh2a: Improve cache flush/invalidate functions The cache functions lock out interrupts for long periods; this patch reduces the impact when operating on large address ranges. In such cases it will: - Invalidate the entire cache rather than individual addresses. - Do nothing when flushing the operand cache in write-through mode. - When flushing the operand cache in write-back mdoe, index the search for matching addresses on the cache entires instead of the addresses to flush Note: sh2a__flush_purge_region was only invalidating the operand cache, this adds flush. Signed-off-by: Phil Edworthy Signed-off-by: Paul Mundt --- Reading git-diff-tree failed