Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Olof Johansson and committed by
Paul Mackerras
a416561b 01f1c735

+4
+2
arch/powerpc/kernel/head_64.S
··· 656 656 FINISH_NAP 657 657 hardware_interrupt_entry: 658 658 DISABLE_INTS 659 + BEGIN_FTR_SECTION 659 660 bl .ppc64_runlatch_on 661 + END_FTR_SECTION_IFSET(CPU_FTR_CTRL) 660 662 addi r3,r1,STACK_FRAME_OVERHEAD 661 663 bl .do_IRQ 662 664 b .ret_from_except_lite
+2
include/asm-powerpc/exception.h
··· 282 282 EXCEPTION_PROLOG_COMMON(trap, PACA_EXGEN); \ 283 283 FINISH_NAP; \ 284 284 DISABLE_INTS; \ 285 + BEGIN_FTR_SECTION \ 285 286 bl .ppc64_runlatch_on; \ 287 + END_FTR_SECTION_IFSET(CPU_FTR_CTRL) \ 286 288 addi r3,r1,STACK_FRAME_OVERHEAD; \ 287 289 bl hdlr; \ 288 290 b .ret_from_except_lite