Skip to content

Commit

Permalink
m32r: Exit ei_handler directly for no IRQ case or IPI operations
Browse files Browse the repository at this point in the history
If no IRQ request is found in the IRQ check of ei_handler,
we can exit directly by jumping "restore_all", instead of via
"ret_from_intr".

This modification is also likely effective for IPI operations,
because scheduler call never happen at the exit of IPIs.

Signed-off-by: Hitoshi Yamamoto <hitoshiy@linux-m32r.org>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
  • Loading branch information
Hirokazu Takata committed Sep 3, 2007
1 parent 5171b10 commit abd0a78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/m32r/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ ENTRY(ei_handler)
.fillinsn
1:
addi sp, #4
bra ret_to_intr
bra restore_all
.fillinsn
2:
srli r0, #2
Expand Down Expand Up @@ -382,7 +382,6 @@ check_end:
pop r14
seth r0, #shigh(M32R_ICU_IMASK_ADDR)
st r14, @(low(M32R_ICU_IMASK_ADDR),r0)
ret_to_intr:
bra ret_from_intr

/*
Expand Down

0 comments on commit abd0a78

Please sign in to comment.