diff options
author | Olof Johansson <olof@lixom.net> | 2007-09-04 22:42:30 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-13 11:33:22 -0400 |
commit | a416561bf790d55db68b2980c2a6951981018041 (patch) | |
tree | fe57391e4d67961cd0682344b5276a4153e160c4 | |
parent | 01f1c735f57548e6b862e815cc845e452405643d (diff) |
[POWERPC] Move lowlevel runlatch calls under cpu feature control
There's no need to call the runlatch on functions on processors that
don't implement them (CPU_FTR_CTRL).
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/kernel/head_64.S | 2 | ||||
-rw-r--r-- | include/asm-powerpc/exception.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index 33c4e8cab0ba..cec59089e48c 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S | |||
@@ -656,7 +656,9 @@ hardware_interrupt_common: | |||
656 | FINISH_NAP | 656 | FINISH_NAP |
657 | hardware_interrupt_entry: | 657 | hardware_interrupt_entry: |
658 | DISABLE_INTS | 658 | DISABLE_INTS |
659 | BEGIN_FTR_SECTION | ||
659 | bl .ppc64_runlatch_on | 660 | bl .ppc64_runlatch_on |
661 | END_FTR_SECTION_IFSET(CPU_FTR_CTRL) | ||
660 | addi r3,r1,STACK_FRAME_OVERHEAD | 662 | addi r3,r1,STACK_FRAME_OVERHEAD |
661 | bl .do_IRQ | 663 | bl .do_IRQ |
662 | b .ret_from_except_lite | 664 | b .ret_from_except_lite |
diff --git a/include/asm-powerpc/exception.h b/include/asm-powerpc/exception.h index d850c8ea5903..39abdb02fdef 100644 --- a/include/asm-powerpc/exception.h +++ b/include/asm-powerpc/exception.h | |||
@@ -282,7 +282,9 @@ label##_common: \ | |||
282 | EXCEPTION_PROLOG_COMMON(trap, PACA_EXGEN); \ | 282 | EXCEPTION_PROLOG_COMMON(trap, PACA_EXGEN); \ |
283 | FINISH_NAP; \ | 283 | FINISH_NAP; \ |
284 | DISABLE_INTS; \ | 284 | DISABLE_INTS; \ |
285 | BEGIN_FTR_SECTION \ | ||
285 | bl .ppc64_runlatch_on; \ | 286 | bl .ppc64_runlatch_on; \ |
287 | END_FTR_SECTION_IFSET(CPU_FTR_CTRL) \ | ||
286 | addi r3,r1,STACK_FRAME_OVERHEAD; \ | 288 | addi r3,r1,STACK_FRAME_OVERHEAD; \ |
287 | bl hdlr; \ | 289 | bl hdlr; \ |
288 | b .ret_from_except_lite | 290 | b .ret_from_except_lite |