diff options
author | Dave Martin <Dave.Martin@arm.com> | 2018-05-14 20:51:09 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-05-17 20:19:53 +0300 |
commit | 159fd7b8d3d12b27593d4fe3f6ae1d8e14ea9d0b (patch) | |
tree | 2cc7356909e076e77d1fe961f9c90f2f0c8f0595 /arch/arm64/include/asm/irqflags.h | |
parent | 37c3ec2d810f87eac73822f76b30391a83bded19 (diff) | |
download | linux-159fd7b8d3d12b27593d4fe3f6ae1d8e14ea9d0b.tar.xz |
arm64/sve: Write ZCR_EL1 on context switch only if changed
Writes to ZCR_EL1 are self-synchronising, and so may be expensive
in typical implementations.
This patch adopts the approach used for costly system register
writes elsewhere in the kernel: the system register write is
suppressed if it would not change the stored value.
Since the common case will be that of switching between tasks that
use the same vector length as one another, prediction hit rates on
the conditional branch should be reasonably good, with lower
expected amortised cost than the unconditional execution of a
heavyweight self-synchronising instruction.
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/irqflags.h')
0 files changed, 0 insertions, 0 deletions