diff options
author | Will Deacon <will.deacon@arm.com> | 2013-06-12 12:25:56 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-06-17 09:27:06 +0100 |
commit | 621a0147d5c921f4cc33636ccd0602ad5d7cbfbc (patch) | |
tree | 59bbba6a677dc8fa5fc6375ef1f391bad2dd9ed4 /arch/arm/kernel/traps.c | |
parent | 2874865c1271cc8e8b663804e5de4bc0c36273e1 (diff) | |
download | blackbird-obmc-linux-621a0147d5c921f4cc33636ccd0602ad5d7cbfbc.tar.gz blackbird-obmc-linux-621a0147d5c921f4cc33636ccd0602ad5d7cbfbc.zip |
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 <catalin.marinas@arm.com>
Reported-by: Albin Tonnerre <albin.tonnerre@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions