From: Will Deacon Date: Wed, 12 Jun 2013 11:25:56 +0000 (+0100) Subject: ARM: 7757/1: mm: don't flush icache in switch_mm with hardware broadcasting X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~41^2~1^3~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=621a0147d5c921f4cc33636ccd0602ad5d7cbfbc;p=pandora-kernel.git ARM: 7757/1: mm: don't flush icache in switch_mm with hardware broadcasting When scheduling an mm on a CPU where it hasn't previously been used, we flush the icache on that CPU so that any code loaded previously on a different core can be safely executed. For cores with hardware broadcasting of cache maintenance operations, this is clearly unnecessary, since the inner-shareable invalidation in __sync_icache_dcache will affect all CPUs. This patch conditionalises the icache flush in switch_mm based on cache_ops_need_broadcast(). Acked-by: Catalin Marinas Reported-by: Albin Tonnerre Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed