Message ID | 20210525183302.56293-2-mark.rutland@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm64: entry: migrate more code to C | expand |
On Tue, 25 May 2021 19:32:43 +0100, Mark Rutland <mark.rutland@arm.com> wrote: > > 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> > Reviewed-by: Joey Gouly <joey.gouly@arm.com> > Cc: Catalin Marinas <catalin.marinas@arm.com> > Cc: James Morse <james.morse@arm.com> > Cc: Marc Zyngier <maz@kernel.org> > Cc: Will Deacon <will@kernel.org> Acked-by: Marc Zyngier <maz@kernel.org> M.
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index a05d34f0e82a..41f0aa92022a 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -765,7 +765,6 @@ asmlinkage void notrace bad_mode(struct pt_regs *regs, int reason, unsigned int esr_get_class_string(esr)); __show_regs(regs); - local_daif_mask(); panic("bad mode"); }