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

powerpc/ppc64: Remove the unneeded load of ti_flags in resume_kernel

We already got the value of current_thread_info and ti_flags and store
them into r9 and r4 respectively before jumping to resume_kernel. So
there is no reason to reload them again.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Kevin Hao and committed by
Benjamin Herrenschmidt
0edfdd10 1443d6a2

+1 -3
+1 -3
arch/powerpc/kernel/entry_64.S
··· 673 673 674 674 resume_kernel: 675 675 /* check current_thread_info, _TIF_EMULATE_STACK_STORE */ 676 - CURRENT_THREAD_INFO(r9, r1) 677 - ld r8,TI_FLAGS(r9) 678 - andis. r8,r8,_TIF_EMULATE_STACK_STORE@h 676 + andis. r8,r4,_TIF_EMULATE_STACK_STORE@h 679 677 beq+ 1f 680 678 681 679 addi r8,r1,INT_FRAME_SIZE /* Get the kprobed function entry */