From: Kevin Hao Date: Tue, 6 Aug 2013 10:23:30 +0000 (+0800) Subject: powerpc: Move the testing of CPU_FTR_COHERENT_ICACHE into __flush_icache_range X-Git-Tag: v3.12-rc1~123^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb29c3bb13c7b747fae18b9c63b660529ccc612;p=pandora-kernel.git powerpc: Move the testing of CPU_FTR_COHERENT_ICACHE into __flush_icache_range In function flush_icache_range(), we use cpu_has_feature() to test the feature bit of CPU_FTR_COHERENT_ICACHE. But this seems not optimal for two reasons: a) For ppc32, the function __flush_icache_range() already do this check with the macro END_FTR_SECTION_IFSET. b) Compare with the cpu_has_feature(), the method of using macro END_FTR_SECTION_IFSET will not introduce any runtime overhead. [And while at it, add the missing required isync] -- BenH Signed-off-by: Kevin Hao Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed