diff options
author | Mark Rutland <mark.rutland@arm.com> | 2016-08-08 13:12:07 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-08-22 12:00:48 +0300 |
commit | 0a7d87a7776e2616334473c4209e277b6ca300e5 (patch) | |
tree | a12bbd3d31a938b31f35720ee3e9c85f2b301dee /arch/arm64/kernel/signal.c | |
parent | fa8410b355251fd30341662a40ac6b22d3e38468 (diff) | |
download | linux-0a7d87a7776e2616334473c4209e277b6ca300e5.tar.xz |
arm64: hibernate: reduce TLB maintenance scope
In break_before_make_ttbr_switch we perform broadcast TLB maintenance
for the inner shareable domain, and use a DSB ISH to complete this.
However, at the point we execute this, secondary CPUs are either
physically offline, or executing code outside of the kernel. Upon
entering the kernel, secondary CPUs will invalidate their TLBs before
enabling their MMUs.
Thus we do not need to invalidate TLBs of other CPUs, and as with
idmap_cpu_replace_ttbr1 we can reduce the scope of maintenance to the
TLBs of the local CPU. This keeps our TLB maintenance code consistent,
and is a minor optimisation.
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: James Morse <james.morse@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/signal.c')
0 files changed, 0 insertions, 0 deletions