arm64: assembler: remove inherit_daif macro
authorMark Rutland <mark.rutland@arm.com>
Thu, 16 Jan 2020 18:35:44 +0000 (18:35 +0000)
committerWill Deacon <will@kernel.org>
Fri, 17 Jan 2020 13:22:13 +0000 (13:22 +0000)
We haven't needed the inherit_daif macro since commit:

  ed3768db588291dd ("arm64: entry: convert el1_sync to C")

... which converted all callers to C and the local_daif_inherit
function.

Remove the unused macro.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/assembler.h

index b8cf7c8..5f8a277 100644 (file)
        msr     daif, \flags
        .endm
 
-       /* Only on aarch64 pstate, PSR_D_BIT is different for aarch32 */
-       .macro  inherit_daif, pstate:req, tmp:req
-       and     \tmp, \pstate, #(PSR_D_BIT | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT)
-       msr     daif, \tmp
-       .endm
-
        /* IRQ is the lowest priority flag, unconditionally unmask the rest. */
        .macro enable_da_f
        msr     daifclr, #(8 | 4 | 1)