Skip to content

Commit d503d01

Browse files
brooniewilldeacon
authored andcommitted
arm64/asm: Remove unused assembler DAIF save/restore macros
There are no longer any users of the assembler macros for saving and restoring DAIF so remove them to prevent further users being added, there are C equivalents available. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent a8bf2fc commit d503d01

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/arm64/include/asm/assembler.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
wx\n .req w\n
3535
.endr
3636

37-
.macro save_and_disable_daif, flags
38-
mrs \flags, daif
39-
msr daifset, #0xf
40-
.endm
41-
4237
.macro disable_daif
4338
msr daifset, #0xf
4439
.endm
@@ -47,10 +42,6 @@
4742
msr daifclr, #0xf
4843
.endm
4944

50-
.macro restore_daif, flags:req
51-
msr daif, \flags
52-
.endm
53-
5445
/*
5546
* Save/restore interrupts.
5647
*/

0 commit comments

Comments
 (0)