diff options
author | Kevin Hao <haokexin@gmail.com> | 2013-09-26 04:41:34 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 01:49:25 -0400 |
commit | 0edfdd10f57bd989f7c2bc31ce6f601bbee1b664 (patch) | |
tree | 198142ff7e30bde25ad53e41ef44bd06b7981b0f /arch/powerpc | |
parent | 1443d6a2a740b0b0dd644dba0fb96863eea238eb (diff) |
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 889ea2b19383..12679cd43e0c 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S | |||
@@ -673,9 +673,7 @@ _GLOBAL(ret_from_except_lite) | |||
673 | 673 | ||
674 | resume_kernel: | 674 | resume_kernel: |
675 | /* check current_thread_info, _TIF_EMULATE_STACK_STORE */ | 675 | /* check current_thread_info, _TIF_EMULATE_STACK_STORE */ |
676 | CURRENT_THREAD_INFO(r9, r1) | 676 | andis. r8,r4,_TIF_EMULATE_STACK_STORE@h |
677 | ld r8,TI_FLAGS(r9) | ||
678 | andis. r8,r8,_TIF_EMULATE_STACK_STORE@h | ||
679 | beq+ 1f | 677 | beq+ 1f |
680 | 678 | ||
681 | addi r8,r1,INT_FRAME_SIZE /* Get the kprobed function entry */ | 679 | addi r8,r1,INT_FRAME_SIZE /* Get the kprobed function entry */ |