]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: remove redundant local_daif_mask() in bad_mode()
authorMark Rutland <mark.rutland@arm.com>
Mon, 7 Jun 2021 09:46:05 +0000 (10:46 +0100)
committerWill Deacon <will@kernel.org>
Mon, 7 Jun 2021 10:35:54 +0000 (11:35 +0100)
commit2df1e69e3d86e1dc68920c2a8cb249674fd3b6af
tree94d2e294c376436f60107b5fbaa5689d04b9aa82
parent70cbf5cd52e65b9e7ea198f97a0465a1d703a656
arm64: remove redundant local_daif_mask() in bad_mode()

Upon taking an exception, the CPU sets all the DAIF bits. We never
clear any of these bits prior to calling bad_mode(), and bad_mode()
itself never clears any of these bits, so there's no need to call
local_daif_mask().

This patch removes the redundant call.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210607094624.34689-2-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/traps.c