summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-09-05 04:42:30 +0200
committerPaul Mackerras <paulus@samba.org>2007-09-13 17:33:22 +0200
commita416561bf790d55db68b2980c2a6951981018041 (patch)
treefe57391e4d67961cd0682344b5276a4153e160c4 /include
parent[POWERPC] Remove unused platform_machine_check() (diff)
downloadlinux-a416561bf790d55db68b2980c2a6951981018041.tar.xz
linux-a416561bf790d55db68b2980c2a6951981018041.zip
[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>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/exception.h2
1 files changed, 2 insertions, 0 deletions
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: \
EXCEPTION_PROLOG_COMMON(trap, PACA_EXGEN); \
FINISH_NAP; \
DISABLE_INTS; \
+BEGIN_FTR_SECTION \
bl .ppc64_runlatch_on; \
+END_FTR_SECTION_IFSET(CPU_FTR_CTRL) \
addi r3,r1,STACK_FRAME_OVERHEAD; \
bl hdlr; \
b .ret_from_except_lite