diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-07-09 13:36:40 +0200 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-08-26 06:10:25 +0200 |
commit | fce16bc35ae4a45634f3dc348d8d297a25c277cf (patch) | |
tree | ad8bd83bf1ec3210208bad9a566a7585583ee876 /arch/arc/include | |
parent | ARC: Exception Handlers Code consolidation (diff) | |
download | linux-fce16bc35ae4a45634f3dc348d8d297a25c277cf.tar.xz linux-fce16bc35ae4a45634f3dc348d8d297a25c277cf.zip |
ARC: Entry Handler tweaks: Optimize away redundant IRQ_DISABLE_SAVE
In the exception return path, for both U/K cases, intr are already
disabled (for various existing reasons). So when we drop down to
@restore_regs, we need not redo that.
There was subtle issue - when intr were NOT being disabled for
ret-to-kernel-but-no-preemption case - now fixed by moving the
IRQ_DISABLE further up in @resume_kernel_mode.
So what do we gain:
* Shaves off a few insn in return path.
* Eliminates the need for IRQ_DISABLE_SAVE assembler macro for ARCv2
hence allows for entry code sharing.
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/irqflags.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/arc/include/asm/irqflags.h b/arch/arc/include/asm/irqflags.h index d99f79bcf865..b68b53f458d1 100644 --- a/arch/arc/include/asm/irqflags.h +++ b/arch/arc/include/asm/irqflags.h @@ -157,13 +157,6 @@ static inline void arch_unmask_irq(unsigned int irq) flag \scratch .endm -.macro IRQ_DISABLE_SAVE scratch, save - lr \scratch, [status32] - mov \save, \scratch /* Make a copy */ - bic \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK) - flag \scratch -.endm - .macro IRQ_ENABLE scratch lr \scratch, [status32] or \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK) |