Commit a82785a9 authored by Julien Thierry's avatar Julien Thierry Committed by Catalin Marinas

arm64: Remove unused daif related functions/macros

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: default avatarJulien Thierry <julien.thierry@arm.com>
Reviewed-by: default avatarMark Rutland <mark.rutland@arm.com>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: James Morse <james.morse@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 5870970b
...@@ -62,16 +62,8 @@ ...@@ -62,16 +62,8 @@
.endm .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 .macro save_and_disable_irq, flags
mrs \flags, daif mrs \flags, daif
msr daifset, #2 msr daifset, #2
......
...@@ -43,16 +43,6 @@ static inline unsigned long local_daif_save(void) ...@@ -43,16 +43,6 @@ static inline unsigned long local_daif_save(void)
return flags; 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) static inline void local_daif_restore(unsigned long flags)
{ {
if (!arch_irqs_disabled_flags(flags)) if (!arch_irqs_disabled_flags(flags))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment