commit | 5959e25729a521097856d71528504deda1e11584 | [log] [tgz] |
---|---|---|
author | Will Deacon <will.deacon@arm.com> | Thu Jul 10 12:40:09 2014 +0100 |
committer | Catalin Marinas <catalin.marinas@arm.com> | Fri Jul 18 10:21:17 2014 +0100 |
tree | ce4fc3bb9d6b573450ea8c947d94d49eaeb6dad3 | |
parent | ad789ba5f7086138461420d2156478d33fb61077 [diff] |
arm64: fpsimd: avoid restoring fpcr if the contents haven't changed Writing to the FPCR is commonly implemented as a self-synchronising operation in the CPU, so avoid writing to the register when the saved value matches that in the hardware already. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>