diff options
| author | Will Deacon <[email protected]> | 2013-06-12 12:25:56 +0100 |
|---|---|---|
| committer | Russell King <[email protected]> | 2013-06-17 09:27:06 +0100 |
| commit | 621a0147d5c921f4cc33636ccd0602ad5d7cbfbc (patch) | |
| tree | 59bbba6a677dc8fa5fc6375ef1f391bad2dd9ed4 /include/linux/debugobjects.h | |
| parent | 2874865c1271cc8e8b663804e5de4bc0c36273e1 (diff) | |
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 <[email protected]>
Reported-by: Albin Tonnerre <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions