Commit 6f1c8bb5 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k: optimize stacked irq check

M68k: optimize stacked irq check (from Roman Zippel)
parent 5a178f93
...@@ -246,13 +246,10 @@ ret_from_interrupt: ...@@ -246,13 +246,10 @@ ret_from_interrupt:
2: 2:
RESTORE_ALL RESTORE_ALL
1: 1:
#if 1 moveq #(~ALLOWINT>>8)&0xff,%d0
bfextu %sp@(PT_SR){#5,#3},%d0 | Check for nested interrupt. andb %sp@(PT_SR),%d0
#if MAX_NOINT_IPL > 0 jne 2b
cmpiw #MAX_NOINT_IPL,%d0
#endif
jhi 2b
#endif
/* check if we need to do software interrupts */ /* check if we need to do software interrupts */
tstl irq_stat+CPUSTAT_SOFTIRQ_PENDING tstl irq_stat+CPUSTAT_SOFTIRQ_PENDING
jeq ret_from_exception jeq ret_from_exception
......
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