arm64: Remove unused daif related functions/macros
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:58:40 +0000 (14:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:05:17 +0000 (10:05 +0000)
There are some helpers to modify PSR.[DAIF] bits that are not referenced
anywhere. The less these bits are available outside of local_irq_*
functions the better.

Get rid of those unused helpers.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/assembler.h
arch/arm64/include/asm/daifflags.h

index 4feb611..7acf243 100644 (file)
        .endm
 
 /*
- * Enable and disable interrupts.
+ * Save/restore interrupts.
  */
-       .macro  disable_irq
-       msr     daifset, #2
-       .endm
-
-       .macro  enable_irq
-       msr     daifclr, #2
-       .endm
-
        .macro  save_and_disable_irq, flags
        mrs     \flags, daif
        msr     daifset, #2
index 8d91f22..546bc39 100644 (file)
@@ -43,16 +43,6 @@ static inline unsigned long local_daif_save(void)
        return flags;
 }
 
-static inline void local_daif_unmask(void)
-{
-       trace_hardirqs_on();
-       asm volatile(
-               "msr    daifclr, #0xf           // local_daif_unmask"
-               :
-               :
-               : "memory");
-}
-
 static inline void local_daif_restore(unsigned long flags)
 {
        if (!arch_irqs_disabled_flags(flags))