diff options
author | Hirokazu Takata <takata@linux-m32r.org> | 2006-04-19 01:21:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-19 12:13:51 -0400 |
commit | 4127272c38619c56f0c1aa01d01c7bd757db70a1 (patch) | |
tree | d12ca9b4ba542a93957dc50c009928299ea66991 /arch/m32r/kernel | |
parent | dd1c1e3e9ed04d33a698925238e527b7051f64b9 (diff) |
[PATCH] m32r: update switch_to macro for tuning
- Remove unnecessary push/pop's of the switch_to() macro
for performance tuning.
- Cosmetic updates: change __inline__ to inline, etc.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Cc: NIIBE Yutaka <gniibe@fsij.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m32r/kernel')
-rw-r--r-- | arch/m32r/kernel/entry.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/m32r/kernel/entry.S b/arch/m32r/kernel/entry.S index 5e4a0c8a5d3c..920bb742b7a2 100644 --- a/arch/m32r/kernel/entry.S +++ b/arch/m32r/kernel/entry.S | |||
@@ -132,7 +132,7 @@ VM_MASK = 0x00020000 | |||
132 | #endif | 132 | #endif |
133 | 133 | ||
134 | ENTRY(ret_from_fork) | 134 | ENTRY(ret_from_fork) |
135 | ld r0, @sp+ | 135 | pop r0 |
136 | bl schedule_tail | 136 | bl schedule_tail |
137 | GET_THREAD_INFO(r8) | 137 | GET_THREAD_INFO(r8) |
138 | bra syscall_exit | 138 | bra syscall_exit |
@@ -310,7 +310,7 @@ ENTRY(ei_handler) | |||
310 | ; GET_ICU_STATUS; | 310 | ; GET_ICU_STATUS; |
311 | seth r0, #shigh(M32R_ICU_ISTS_ADDR) | 311 | seth r0, #shigh(M32R_ICU_ISTS_ADDR) |
312 | ld r0, @(low(M32R_ICU_ISTS_ADDR),r0) | 312 | ld r0, @(low(M32R_ICU_ISTS_ADDR),r0) |
313 | st r0, @-sp | 313 | push r0 |
314 | #if defined(CONFIG_SMP) | 314 | #if defined(CONFIG_SMP) |
315 | /* | 315 | /* |
316 | * If IRQ == 0 --> Nothing to do, Not write IMASK | 316 | * If IRQ == 0 --> Nothing to do, Not write IMASK |
@@ -547,7 +547,7 @@ check_end: | |||
547 | #endif /* CONFIG_PLAT_M32104UT */ | 547 | #endif /* CONFIG_PLAT_M32104UT */ |
548 | bl do_IRQ | 548 | bl do_IRQ |
549 | #endif /* CONFIG_SMP */ | 549 | #endif /* CONFIG_SMP */ |
550 | ld r14, @sp+ | 550 | pop r14 |
551 | seth r0, #shigh(M32R_ICU_IMASK_ADDR) | 551 | seth r0, #shigh(M32R_ICU_IMASK_ADDR) |
552 | st r14, @(low(M32R_ICU_IMASK_ADDR),r0) | 552 | st r14, @(low(M32R_ICU_IMASK_ADDR),r0) |
553 | #else | 553 | #else |