]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARC: Entry Handler tweaks: Optimize away redundant IRQ_DISABLE_SAVE
authorVineet Gupta <vgupta@synopsys.com>
Tue, 9 Jul 2013 11:36:40 +0000 (17:06 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 30 Jul 2013 08:57:32 +0000 (01:57 -0700)
commitf73e102c10751e4da7c63ec6373c1a4938f8a356
tree95bcc12bccd89e6bbabd2f515ef84be59b4e28ca
parentcb620febf872743d639540e8bf378a13a1389b09
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>
arch/arc/include/asm/irqflags.h
arch/arc/kernel/entry.S